Using Socket Services With Cmnd(490); Using Socket Service - Omron CS CJ1W-ETN21 Operation Manual

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

Advertisement

Using Socket Services with CMND(490)

6-8

Using Socket Services with CMND(490)

6-8-1

Using Socket Service

1,2,3...
136
Each Ethernet Unit has eight TCP sockets and eight UDP sockets. Open,
close, send, and receive processes are available for communications with
sockets.
Open
Enables communications on a specified socket. A socket must be opened
before it can be used for socket services. Opening a TCP socket establishes a
connection.
Close
Ends use of the socket. Breaks the connection for a TCP socket.
Send
Sends data from a specified open socket.
Receive
Specifies an open socket and receives data from that socket.
These processes are carried out by sending FINS commands to the Ethernet
Unit. The process from sending a request for processing to completion is
shown in the following illustrations.
1. Execute a socket service request command (MRC: 27) for the Ethernet
Unit using CMND(490).
CPU
User program
2. CMND(490) ends normally when the socket service request command is
received and a response is returned (response code: 0000).
User program
3. The Ethernet Unit starts the process requested by the parameters in the
socket service request command.
Socket service
CMND
Request
command
END
CPU
Response
CMND
END
Section 6-8
Ethernet Unit
Ethernet Unit

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents