1043
Network Instructions Section 3-25
Ladder Programming
Examples
Example 1: User Specification of Communications Port Number
A21300
A21300 A21900
A21900
Execution
condition
Communications Port
Enabled Flag
A20200
d (Execution completed)
a (Executing)
The explicit message instruction is executed when a (executing)
turns ON. The port number 0 is specified.
a (Executing) is turned ON and held ON when the
execution condition and Communications Port
Enabled Flag (A20200) turn ON.
a (Executing) is turned OFF when d (Execution
completed) turns ON.
Explicit
message
instruction
Port: 0
a (Executing)
KEEP
a (Executing)
Processing after
completing network
communications
Processing for network
communications error:
Explicit error
The Communications Port Enabled Flag (A20200) 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 (A20200) turns
ON.
If the Explicit Communications Error Flag
(A21300) when execution is completed, explicit
memory communications were completed
normally and normal processing after network
communications is performed.
If the Explicit Communications Error Flag
(A21300) is ON when execution is completed, an
error has occurred in explicit message
communications and the Communications Port
Error Flag (A21900) is checked. If it is OFF,
processing for an explicit communications error is
performed on the assumption that an explicit
message was sent and an explicit message
response was received.
If the Explicit Communications Error Flag
(A21300) is ON when execution is completed, an
error has occurred in explicit message
communications and the Communications Port
Error Flag (A21900) is checked. If it is ON,
processing for a FINS communications error is
performed on the assumption that an explicit
message was never sent.
Communications Port
Enabled Flag
A20200
d (Execution completed)
Processing for network
communications error:
FINS error