6.2. Example of Connection Check
This document uses an example of the ladder program in which the PLC executes TCP
socket open, send/receive, and socket close processing on the Robot Controller.
The PLC and Robot Controller send and receive the message of "Acquire version information".
The following figure outlines the operation.
CPU Unit
Project file
Ladder program
@SET
Executing Ethernet
communications
command
D9000 onwards
Send data
setting area
D10000 onwards
Receive data
storage area
6.Ethernet Communications Settings
PLC
Ethernet Unit
Socket
communications
function
Sending/Receiving Ethernet
command
Aquiring version information
Ethernet
Robot Controller
TCP socket open
Send data
Receive data
Socket close
10