911
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Network Instructions
3
Network Instructions
Ladder Programming Examples
z Specifying Communications Ports
z Automatically Allocating Communications Port
Execution
condition
d (Execution completed)
d (Execution
completed)
a (Executing)
A219.00
A219.00
A202.00
a (Executing) A202.00
Processing after
completing network
communications
Normal
processing
Error
processing
KEEP
SEND
Port: 0
a (Executing) is turned ON and held ON when the
execution condition and Communications Port
Enabled Flag (A202.00) 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 port number 0 is specified.
The Communications Port Enabled Flag (A202.00) is OFF during
network communications and turns ON when they are completed
(for either normal or error completion).
d (Execution completed) is turned ON when a (Executing) turns
ON and the Communications Port Enabled Flag (A202.00) turns
ON.
a
(Executing)
If the Communications Port Error Flag (A219.00) is OFF when
network communications have been completed, normal
processing is performed.
If the Communications Port Error Flag (A219.00) is ON when
network communications have been completed, error processing
is performed.
Execution
condition
d (Execution completed)
d (Execution
completed)
c (Standby)
a (Executing)
A202.15
SEND
Port: F
MOV
A218
b (port)
KEEP
a (Executing)
a (Executing) c (Standby)
Processing after
network
communications
Normal
processing
Error
processing
TST
A214
b (port)
TSTN
A219
b (port))
TST
A219
b (port)
a (Executing) is turned ON and held ON when the
execution condition and Communications Port Allocation
Enabled Flag (A202.15) turn ON.
a (Executing) is turned OFF when d (Execution
completed) turns ON.
The Communications Port Enabled Flag (A202.00) is OFF during
network communications and turns ON when they are completed
(for either normal or error completion).
d (Execution completed) is turned ON when a (Executing) turns
ON and the Communications Port Enabled Flag (A202.00) turns
ON.
If the Communications Port Error Flag (A219.00) is OFF
when network communications have been completed, normal
processing is performed.
If the Communications Port Error Flag (A219.00) is ON when
network communications have been completed, error
processing is performed.
The automatically allocated port number stored in A218 (Used
Communications Port Numbers 0 to 7) is moved to a
user-specified work word b (port).
The network communications instruction is executed when a
(Executing) turns ON. The port number F is specified.
c (Standby) turns OFF in the cycle after communications instruction execution
is completed and communications completion are detected from that cycle.