Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 769

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
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
TB+37
Lower word of range 8 upper limit
TB+38
Upper word of range 8 upper limit
Range 8 interrupt task number
TB+39
Interrupt task number
0000 to 00FF hex: Interrupt task number 0 to 255
AAAA hex:
Do not execute interrupt task.
FFFF hex:
Ignore the settings for this range.
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
732
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.)
@DM
AR
T
C
DM
EM
---
---
---
---
---
OK
OK
OK
OK
Indirect DM/EM
addresses
Con-
stants
*DM
DR
@EM
*EM
---
---
OK
---
OK
OK
---
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents