WEB S ERVER CPU MODULE U SER ’S MANUAL FC9Y-B1278 11-111: PING INSTRUCTIONIntroductionThis chapter describes how to use the PING instruction. The PING instruction sends a ping packet to the specified remotehost to check if the communication can be done with the remote host on the Internet Protocol (IP) layer.PING (Ping)The PING instruction sends a ping packet to the specified remote host.SymbolOperation DetailsWhen the input to the PING instruction is on, the PING instruction sends a ping packet to the remote host specified by S1.Once the Web server CPU module receives the reply from the remote host, the completion output specified by D1 isturned 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 to the instruction is on. While the input to the PING instruction is on,the PING instruction is continuously executed. To avoid executing PING instruction continuously, a transitional off-to-onSOTU or on-to-off SOTD instruction should be used.In order to use the PING instruction, the remote host list of the Web server CPU module should be configured. For detailsabout the remote host list, see “Remote Host List” on page 6-1.Valid Devices*1: Special internal relays cannot be used.Devices in PING InstructionsS1 (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 Web server CPU module receives a reply fromthe remote host, the completion output bit is turned on. The completion output bit is also turned on when there is noreply from the remote host within the specified timeout that is configured in the Function Area Settings. For detailsabout the timeout setting, see “Programming WindLDR” on page 11-2.D2 (Destination 2)Specify a data register as the operation status. Destination 2 occupies two consecutive data registers starting with thedata register specified by D2. The operation status is stored in D2. D2+1 is reserved for the system. Data registers D0 toD1998, D2000 to D7998, and D10000 to D49998 can be specified.Device Function I Q M R T C D Constant RepeatS1 Source 1 Remote host number - - - - - - X 1 - 255 -D1 Destination 1 Completion output - X *1 - - - - - -D2 Destination 2 Operation status - - - - - - X - -Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com