Omron CP1E CPU UNIT SOFTWARE User Manual page 393

Cp1e cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
REGISTER
CTBL
COMPARISON
TABLE
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
@
CTBL(882)
P
C
TB
P: Port specifier
C: Control data
TB: First comparison table word
Function
Registers a comparison table and performs comparisons for a PV
of high-speed counter 0 to 5. An interrupt task between 0 to 15 will
be executed when an execution condition is turned ON.
Rotary Encoder
Built-in input
Present value Present value matches set target value
Cyclic tasks
(ladder programs)
Interrupt occurs
END
I/O refresh
P: Port specifier
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
C: Control data
Registers a target value comparison table
0000 hex
and starts comparison.
Registers a range comparison table and
0001 hex
performs one comparison.
Registers a target value comparison table.
0002 hex
Comparison is started with INI(880).
Registers a range comparison table. Com-
0003 hex
parison is started with INI(880).
TB: First comparison table word
TB is the first word of the comparison table. The structure of the
comparison table depends on the type of comparison being per-
formed.
• For target value comparison, the length of the comparison table
is determined by the number of target values specified in TB.
The table can be between 4 and 19 words long, as shown
below.
15
0
TB
Number of target values
Lower word of target value 1
TB+1
TB+2
Upper word of target value 1
Interrupt task number for target value 1
TB+3
TB+16
Lower word of target value 6
TB+17
Upper word of target value 6
Interrupt task number for target value 6
TB+18
Interrupt Task Number
15
14
12
11
8
7
4
0
0 0 0
Direction
OFF: Incrementing,
ON: Decrementing
Appendices
Time
Interrupt task
Ladder diagram
END
0001 to 6 hex (1 to 6 target values)
00000000 to FFFFFFFF hex
00000000 to FFFFFFFF hex
3
0
Interrupt task number
00 to 0F hex (0 to 15)
A-39

Advertisement

Table of Contents
loading

Table of Contents