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

Table of Contents

Advertisement

3. Instructions
Auxiliary Area Words and Bits
The CJ2 Network Communications Instructions use the communications information in operand I in
place of the Communications Port Enabled Flags in A202 used by previous instructions.
Auxiliary Area
A202.00 to A202.07
A202.08
A203 to 210
A211
A213
A214.00 to A214.07
A215.00 to A215.07
A216 and A217
A218
A219
Applications Methods
Execution
condition
A202.08
d (Execution completed)
a (Executing)
a (Executing)
W10.00
About Explicit Message Instructions
Methods for Using Explicit Message Communications
There are two methods that can be used to send explicit messages from a PLC.
• Use the CMND(490) or CMND2(493) to send a FINS command code of 2801 hex (EXPLICIT
MESSAGE SEND).
• Use the following Explicit Message Instructions. (See note.)
Note These instructions are supported only by CS/CJ-series CPU Unit with unit version 2.0 or later.
900
Network Communications Instructions
for CJ1/CS1/CJ2
Communications Port Enabled Flag
(communications ports 0 to 7)
Not used.
Communications completion codes for
communications ports 0 to 7
Not used.
Explicit Communications Error Flag
First Cycle Flags after Network
Communications Finished
First Cycle Flags after Network
Communications Error
Communications Port Completion Code
Storage Address
Used Communications Port Numbers
Communications Port Error Flags
KEEP
a (Executing)
SEND2
W10
d (Execution
completed)
W10.01
Normal
processing
W10.01
Error
processing
CJ2 Network Communications Instructions
Instruction operand I
Bit 0
(Turns ON when execution is completed, not when execution is enabled.)
CJ2 Instructions Enabled Flag (default: ON)
Instruction operand I+1
Number of ports available for CJ2 Network Communications Instruction
(A202.08 turns OFF when the value in A211 reaches 0.)
---
---
---
---
Instruction operand I
Bit 1
a (Executing) is turned ON and held ON when the
execution condition and CJ2 Instructions Enabled Flag (A202.08) turn ON.
a (Executing) is turned OFF when d (Execution
completed) turns ON.
The Network Communications Instruction is executed
when a (Executing) turns ON.
The Network Communications Completed Flag (specified in an
instruction operand) turns ON when network communications have
been completed.
If a (Executing) and this flag are ON, network communications
have been completed.
If the Network Communications Error Flag (specified in an
instruction operand) is OFF when network communications have
been completed, normal processing is performed.
If the Network Communications Error Flag (specified in an
instruction operand) is ON when network communications have
been completed, error processing is performed.
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents