Omron CP1E-N@@D@-@ Computer Hardware User Manual


 
2-315
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
High-speed Counter/Pulse
Output Instructions
2
CTBL
CTBL
Applicable Program Areas
Operands
P: Port specifier
C: Control data
Instruction Mnemonic Variations
Function
code
Function
REGISTER
COMPARISON TABLE
CTBL @CTBL 882
CTBL(882) is used to register a comparison table and perform
comparisons for a high-speed counter PV.
Symbol
CTBL
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
P Port specifier --- 1
C Control data --- 1
TB First comparison table word LWORD Variable
P Port
0000 hex High-speed counter 0
0001 hex High-speed counter 1
0002 hex High-speed counter 2
0003 hex High-speed counter 3
0004 hex High-speed counter 4
0005 hex High-speed counter 5 (Cannot be used in CP1E-E10D-)
C CTBL(882) function
0000 hex Registers a target value comparison table and starts comparison.
0001 hex Registers a range comparison table and performs one comparison.
0002 hex Registers a target value comparison table. Comparison is started with INI(880).
0003 hex Registers a range comparison table. Comparison is started with INI(880).
P: Port specifier
CTBL(882)
P
C
TB
TB: First comparison table word
C: Control data