Example 4) When PING request abended (Disconnection detection)
When instruction is executed PING is being executed. PING response is completed.
■
Program example
● The UNITSEL instruction is used to specify a slot number (LAN port: U100) and a connection
number (U1 to U16 for general-purpose communication).
● The PINGREQ instruction checks the operation status of the specified unit.
R0
UNITSEL U100 U1
Specification of the slot port of the
communication unit
S1: ET-LAN port (U100)
S2: Connection 1 (U1)
PINGREQ instruction execution
S: Number of times of PING request (U3)
D: Address for storing the results (DT10)
S1 S2
pPINGREQ U3 DT10
S D
■
Flag operations
Name Description
SR7
SR8
(ER)
To be set when the device address specified by [D] to [D+5] exceeds the upper limit of the
device.
To be set in the case of out-of-range in indirect access (index modification).
To be set when executed in an interrupt program.
(Note 1) For details of the error codes stored in the system data SD29, refer to "20.2 List of System Data
Registers".
17.5 pPINGREQ (PING Request)
WUME-FP7CPUPGR-12 17-31