9.1.1.
Communications Data Flow
This is the flow from issuing a TCP socket communications command from the built-in
EtherNet/IP port to the code reader and receiving response data from the code reader. The
project file executes a processing sequence of TCP open to TCP close in a continuous
manner. If response data is divided and arrives as multiple pieces of receive data, receive
processing will be repeated.
1.
TCP Open Processing
▼
2.
Command Send
Processing
▼
3.
Response Receive
Processing
▼
4.
Close Processing
* Depending on the code reader or the command used, response data may not be sent after
the command is received or response data may be sent immediately after a connection is
established. For this reason, this project file allows you to set whether or not send/receive
processing is required in the Ethernet Communications Sequence Setting function block.
If Send only is set, response receive processing will not be executed. If Receive only is set,
command send processing will not be executed.
The built-in EtherNet/IP port issues a TCP open
request to the code reader to establish a TCP
connection.
The built-in EtherNet/IP port issues a send message
that is set in the ST language program to the code
reader.
The built-in EtherNet/IP port stores the response data
received from the code reader in the internal memory
of the specified CPU Unit.
The built-in EtherNet/IP port issues a close request to
the code reader to close the TCP connection.
9. Project File
28