■
Precautions for programming
● Insert the UNITSEL instruction immediately before this instruction and specify the unit (built-
in ET-LAN in the CPU unit) and the connection number.
● If the partner unit IP address is not set, an error occurs.
● Use the ETSTAT instruction to check the target IP address for the PING request.
■
Operand [S] setting
The instruction requests the sending of PING for the number of times that is specified for [S].
Setting item Settings Setting range
S
Number of times
for sending PING
Specify the number of times.
1 to 10 times
■
Execution result storage area [D] to [D+5]
Operand Execution result Description
[D]
Execution result
code
FFFF: In progress, 0: Normal end, H1x: Request error, H2x: Response
error
[D+1] No. of transmissions
[D+2] No. of responses
[D+3]
Response time
(maximum)
U0 to U1000 (ms)
Response time is in 10 ms unit. When it is less than 10 ms, 0 is stored.
[D+4]
Response time
(minimum)
[D+5]
Response time
(Average)
■
Execution result code [D]
● In the case of abnormal request (10 to 13), it is set when the instruction is executed and the
PING request is not performed.
● The response error (20) occurs when no response is returned from the Ethernet task.
Code Execution result
H0 Normal end
H10 Double startup error PING request instruction is being executed.
H11
Number of requests to send
error
The number of requests to send is not in the available range (1 to
10).
H12 Ethernet unit unselected error The unit selected with UNITSEL is not Ethernet unit.
H13 Connection unused error The specified connection is set to "Not use".
H14 Disconnection error Ethernet is disconnected.
H15
Ethernet initialization in
progress error
Ethernet is being initialized.
H20
Ethernet task response
timeout
It occurs when no response is returned from the Ethernet task.
17.5 pPINGREQ (PING Request)
WUME-FP7CPUPGR-12 17-29