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