Omron CS CJ1W-ETN21 Operation Manual page 125

Sysmac cs and cj series ethernet units construction of applications
Hide thumbs Also See for CS CJ1W-ETN21:
Table of Contents

Advertisement

Protocol Overview
Client
TCP
socket
TCP Communications Procedure
■ Passive OPEN and Active OPEN
An open command is executed for a node to establish a connection. The open
method differs depending on whether the node is a client or server. A passive
open method is used to open the node as a server and the active open
method is used to open the node as a client.
Active
open
Note
1. TCP sockets must be closed once a connection has been made before
communications are possible with other TCP sockets. This is true for other
server and client sockets. Up to eight TCP sockets can be open simulta-
neously.
2. With UDP sockets, communications are possible with more than one other
UDP socket.
3. When a connection is made between two nodes, the process at the node
providing a service is called the server, and the process at the node re-
questing the service is called the client. The server is started first and waits
for a service request from a client. The client requests to the server that a
connection be opened and then transmits data. When the TCP protocol is
used, however, the client–server relationship does not need to be pro-
grammed in the application because it is automatically handled by the pro-
tocol.
The communications procedure is shown below for communications between
a host computer and Ethernet Unit using a TCP socket. In this example, the
host computer is the server and the Ethernet Unit is the client.
Host computer
(server)
Passive open
Connection established
Data receive request
Data send request
Next data receive request
Close
Passive
open
Connection
Connection requested
Send data
ACK (acknowledge)
Send data
ACK (acknowledge)
Section 6-2
Server
TCP
socket
Ethernet Unit
(client)
Active open
Connection established
Data send request
Send next data
Data receive request
Close
101

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents