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


 
2 Instructions
2-316
CP1E CPU Unit Instructions Reference Manual(W483)
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 performed.
For target value comparison, the length of the comparison table is determined by the number of tar-
get values specified in TB. The table can be between 4 and 19 words long, as shown below.
For range comparison, the comparison table always contains six ranges. The table is 30 words long,
as shown below. If it is not necessary to set six ranges, set the interrupt task number to FFFF hex for
all unused ranges.
Note Always set the upper limit greater than or equal to the lower limit for any one range.
Operand Specifications
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
P, C --- --- --- --- --- --- --- --- --- OK
--- --- ---
TB OK OK OK OK OK OK OK OK OK ---
TB+1
TB+2
TB+3
TB
015
03478
000 0
11121415
TB+16
TB+17
TB+18
Upper word of target value 1
Interrupt task number for target value 1
00000000 to FFFFFFFF hex
00000000 to FFFFFFFF hex
Number of target values
0001 to 6 hex (1 to 6 target values)
Interrupt Task Number
Interrupt task number
00 to 0F hex (0 to 15)
Direction
OFF: Incrementing,
ON: Decrementing
Upper word of target value 6
Interrupt task number for target value 6
Lower word of target value 1
Lower word of target value 6
TB
TB+1
TB+2
TB+3
0
15
TB+25
TB+26
TB+27
TB+28
TB+29
Range 1 interrupt task number
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
Interrupt task number
0000 to 000F hex: Interrupt task number 0 to 15
AAAA hex: Do not execute interrupt task.
FFFF hex: Ignore the settings for this range.
Lower word of range 1 lower limit
Upper word of range 1 lower limit
Lower word of range 1 upper limit
Upper word of range 1 upper limit
Range 6 interrupt task number
Lower word of range 6 lower limit
Upper word of range 6 lower limit
Lower word of range 6 upper limit
Upper word of range 6 upper limit