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

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

Advertisement

Sample program
If CIO 0.00 (start bit) and A202.08 (CJ2 Instructions Enabled Flag) are ON, W10.00 (executing) will turn
ON.
When W10.00 (Executing) turns ON, the ten words of data starting from D100 (D100 to D109) are
received from the CPU Unit with node number 3 in the same network and written to ten words starting
from D200 (D200 to D209) at the local node. If a response is not received within 10 seconds, the data
will be resent up to 3 times.
If communications end normally, CIO 2.00 (execution completed) turns ON, and normal processing is
executed. If communications end in an error, CIO 2.01 (error end) turns ON, and error processing is
executed.
0.00
A202.08
CJ2 Instructions
Start bit
Enabled Flag
W10.01
Execution completed
W10.00
Executing
W10.00
2.00
Executing
Execution
Error end
completed
Error end
Timing Chart
1
Start bit
CIO 0.00
0
1
Executing
W10.00
0
RECV2 started
Execution
1
completed
0
CIO 2.00
1
Execution
completed
0
W10.01
CS/CJ/NSJ Series Instructions Reference Manual (W474)
KEEP
W10.00
RECV2
S
D100
D
D200
C
D300
I
2
2.01
Normal
processing
2.01
Error
processing
W10.01
Execution completed
Communications in progress
RECV2 completed
C: D300
0 0 1 0
Number or words to send: 10 words
C+1: D301
0 0 0 0
Receive from the local network and the device itself
C+2: D302
0 3 0 0
Node number 03, unit address 00 (CPU Unit)
C+3: D303
0 0 0 3
Response requested, 3 retries
C+4: D304
0 1 0 0
Response monitoring time: 0064 hexadecimal (10 seconds
3. Instructions
3
897

Advertisement

Table of Contents
loading

Table of Contents