Ping (Ping) - IDEC FC6A-C16K1CE Communications Manual

Fc6a series microsmart all-in-one type
Hide thumbs Also See for FC6A-C16K1CE:
Table of Contents

Advertisement

9: S
PING F
END
Introduction
This chapter describes the PING instruction that sends a ping packet to the specified remote host to check if communication is
possible at the Internet Protocol (IP) layer.
Use the PING instruction to execute the send PING function.

PING (Ping)

The PING instruction sends a ping packet to the specified remote host.
Operation Details
When the input to the PING instruction is on, the PING instruction sends a ping packet to the remote host specified by S1. Once
the FC6A Series MicroSmart receives the reply from the remote host, the completion output specified by D1 is turned on, and the
operation status (operation transition state and error code) is stored in the device specified by D2. D2+1 is reserved for the
system.
The PING instruction is executed when the input is on, and it sends a PING request. While that input remains on, the same PING
instruction is executed after the ping is sent. To avoid this, use the PING instruction in combination with the SOTU (single output
up) instruction or the SOTD (single output down) instruction so that the PING instruction input is on for only one scan. For the
SOTU instruction and the SOTD instruction, see Chapter 4 "SOTU and SOTD (Single Output Up and Down)" in the "FC6A Series
MicroSmart LAD Programming Manual".
In order to use the PING instruction, the FC6A Series MicroSmart remote host list must be created in advance. For details about
the remote host list, see "Remote Host List" on page 3-16.
Valid Devices
Device
S1
Source 1
D1
Destination 1
D2
Destination 2
*1 Special internal relays cannot be used.
Devices in PING Instructions
S1 (Source 1)
Specify the remote host number. A constant or data register can be specified.
D1 (Destination 1)
Specify an internal relay or output as the completion output bit. When the FC6A Series MicroSmart receives a reply from the
remote host, the completion output bit is turned on. The completion output bit is also turned on when there is no reply from the
remote host within the specified timeout that is configured in the Function Area Settings. For details about the timeout setting,
see "Ping Settings" on page 3-10.
D2 (Destination 2)
Specify a data register as the operation status. Destination 2 occupies two consecutive data registers starting with the data
register specified by D2. The operation status is stored in D2. D2+1 is reserved for the system. Data registers D0 to D1998, D2000
to D7998, and D10000 to D49998 can be specified.
UNCTION
Function
Remote host number
Completion output
Operation status
FC6A S
M
S
A
ERIES
ICRO
MART
I
Q
M
-
-
-
*1
-
X
X
-
-
-
-
-O
T
C
LL
IN
NE
YPE
OMMUNICATION
R
T
C
D
Constant
-
-
-
X
1 - 255
-
-
-
-
-
-
-
X
M
FC9Y-B1730
ANUAL
Repeat
-
-
-
-
-
9-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents