745
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
High-speed Counter/Pulse Output Instructions
3
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
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK OK OK 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 (CJ2M only)
0003 hex High-speed counter 3 (CJ2M only)
C CTBL(882) function
0000 hex Registers a target value comparison table and starts comparison.
0001 hex Registers a range comparison table with 8 ranges and starts comparison.
0002 hex Registers a target value comparison table. Comparison is started with INI(880).
0003 hex Registers a range comparison table with 8 ranges, but does not perform comparison.
0004 hex Registers a range comparison table with 1 to 32 ranges, and starts comparison (CJ2M only).
0005 hex Registers a range comparison table with 1 to 32 ranges, but does not perform comparison (CJ2M only).
P: Port specifier
CTBL(882)
P
C
TB
TB: First comparison table word
C: Control data