9. Program
31
9.1.1. Communications Data Flow
The following figure shows the data flow from when the Controller issues command data
with TCP socket communications to the destination device until when the Controller
receives the response data from the destination device. This program executes a series of
processing from the connect processing to the close processing continuously. The receive
processing is repeated when the response data is divided and multiple receive data are
sent.
1. Connect processing
The Controller issues a TCP open request to the
destination device, and establishes a TCP
connection.
↓
2. Sending a command
The Controller issues a send message (command
data), which is set in the program, to the destination
device.
↓
3. Receiving a response
The Controller receives the receive message
(response data) from the destination device and
stores it in the specified internal variable.
↓
4. Close processing
The Controller issues a close request to the
destination device, and terminates the TCP
connection.
*The response data is not sent after receiving command data or the response data is
sent immediately after a connection is established depending on the destination device
and command. With this program, the Send/Receive processing required/not required
setting can be set for the General-purpose Ethernet communications sequence setting
function block.
If Send only is set, the response data receive processing is not performed. If Receive
only is set, the command data send processing is not performed.
Summary of Contents for V750 series
Page 51: ...9 Program 2 Initialization processing 48...
Page 52: ...9 Program 49...
Page 53: ...9 Program 3 Connect processing 50...
Page 54: ...9 Program 4 Send processing 51...
Page 55: ...9 Program 5 Receive processing 52...
Page 56: ...9 Program 53...
Page 57: ...9 Program 6 Close processing 54...
Page 58: ...9 Program 7 Processing number error process 55...
Page 60: ...9 Program Program 57...
Page 62: ...9 Program Program 59...
Page 64: ...9 Program Program 61...
Page 78: ...2013 0911 P543 E1 01...