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

Table of Contents

Advertisement

3. Instructions
Applications Methods
1. Set the communications port in the instruction operand to F hex.
2. Program the ladder diagram as shown below.
Completing and Processing Errors after Executing Communications Instructions
Execution condition
d (Execution completed)
a (Executing)
c (Standby)
a (Executing)
896
KEEP
a
(Executing)
When a (Executing) turns ON, a communications instruction
Communications
(SEND(090), SEND2(491), RECV(098), RECV2(492), CMND(490),
instructions
CMND2(493), PMCR(260), or PMCR2(264)) is executed with the
communications port specified as "F."
Port: F
The communications port number that was automatically allocated is
stored in a work word b (Used port) from A218 (Used Communications
MOV
Port Numbers).
A218
Confirms that the First Cycle Flags after Network Communications Finished Flag for
b
(Port)
the automatically allocated port number (corresponding bit for word b in A214) is ON.
c (Standby)
TST
A214
b
(Port)
TSTN
A215
b
(Port)
TST
A215
b
(Port)
Bit c turns OFF the cycle after the
communications instruction was
executed to enable checking for
communications completion or
communications errors.
Confirms that the First Cycle Flags after Network
Communications Error Flag for the automatically allocated
port number (corresponding bit for word b in A215) is OFF.
d (Execution completed)
Network communications
completion processing
Network communications
error processing
Confirms that the First Cycle Flags after Network
Communications Error Flag for the automatically allocated
port number (corresponding bit for word b in A215) is OFF.
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents