
9: S
END
PING F
UNCTION
9-2
FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
Notes:
•
When a data register is specified as S1, do not change the data register value while PING instruction is executed.
•
The FC6A Series MicroSmart does not respond to a ping packet that is sent by itself.
The operation status includes the operation transition state (status code) and the error detail (error code). The status code can be
obtained by masking the least 4 bits of the operation status. The error code is stored in the least 4 bits of the operation status.
Note:
If the status code is anything other than the codes listed above, an error of PING instruction is suspected.
Status Code
Operation Transition State
Description
16 (000000010000)
Preparing transmission
The interval from turning on the PING instruction input to when the ping
packet is sent to the specified remote host
32 (000000100000)
Waiting for response
From sending the ping packet to the specified remote host, until the
response is received
64 (000001000000)
PING instruction complete
The execution of the PING instruction is completed, allowing for the next
transmission to be processed
Error Code
Error Details
Completion Output
0 (0000)
Normal
ON (The status code is 64)
1 (0001)
-
-
2 (0010)
Timeout error
ON
3 (0011)
The host name of the target remote host could not be resolved with DNS
ON
4 (0100)
The specified remote host does not exist in the remote host list
ON
5 (0101)
Multiple PING instructions are executed simultaneously
ON
6 (0110)
Parameter error
ON
Bit
15
Bit
0
Bit
7
Bit
8
Lower 4 Bits
Error Code
Upper 12 Bits
Status Code
Bit
4
Bit
3