Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 775

Table of Contents

Advertisement

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
target values specified in TB. The table can be between 4 and 145 words long, as shown below.
15
TB
Number of target values
Lower word of target value 1
TB+1
Upper word of target value 1
TB+2
TB+3
Interrupt task number for target value 1
Lower word of target value 48
TB+142
Upper word of target value 48
TB+143
TB+144
Interrupt task number for target value 48
Interrupt Task Number
15
14
12
11
0 0 0
Direction
OFF: Incrementing,
ON: Decrementing
• For range comparison, the comparison table always contains eight ranges. The table is 40 words
long, as shown below. If it is not necessary to set eight ranges, set the interrupt task number to FFFF
hex for all unused ranges.
15
TB
Lower word of range 1 lower limit
TB+1
Upper word of range 1 lower limit
TB+2
Lower word of range 1 upper limit
TB+3
Upper word of range 1 upper limit
Range 1 interrupt task number
TB+35
Lower word of range 8 lower limit
TB+36
Upper word of range 8 lower limit
Lower word of range 8 upper limit
TB+37
Upper word of range 8 upper limit
TB+38
Range 8 interrupt task number
TB+39
Note Always set the upper limit greater than or equal to the lower limit for any one range.
Operand Specifications
Word addresses
Area
CIO
WR
HR
P, C
---
---
---
TB
OK
OK
OK
CS/CJ/NSJ Series Instructions Reference Manual (W474)
0
0001 to 30 hex (1 to 48 target values)
00000000 to FFFFFFFF hex
00000000 to FFFFFFFF hex
8
7
4
3
0
0
Interrupt task number
00 to FF hex (0 to 255)
0
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.)
AR
T
C
DM
EM
---
---
---
---
---
OK
OK
OK
OK
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
---
OK
OK
---
3. Instructions
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
3
TR
bits
---
---
739

Advertisement

Table of Contents
loading

Table of Contents