Using Socket Services With Cmnd(490); Specific Socket Service Functions - 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

Overview
6-3-3

Using Socket Services with CMND(490)

6-3-4

Specific Socket Service Functions

reception, data is received to the send/receive data addresses set in the
parameter area.
Service request commands can be sent to the Ethernet Unit by executing the
CMND(490) instruction in the ladder diagram. CS/CJ Ethernet Units support
the same functionality as the CVM1/CV-series Ethernet Unit, so heritage
programs can be easily corrected and reused.
Up to 16 sockets can be connected using CMND(490): 8 UDP sockets and
8 TCP sockets.
The socket service request commands that can be used are listed in the
following table. Refer to Section 7 FINS Commands Addressed to Ethernet
Units in the Operation Manual, Construction of Networks for details.
Command code
MRC
SRC
27
01
UDP OPEN REQUEST
02
UDP RECEIVE REQUEST
03
UDP SEND REQUEST
04
UDP CLOSE REQUEST
10
TCP PASSIVE OPEN REQUEST
11
TCP ACTIVE OPEN REQUEST
12
TCP RECEIVE REQUEST
13
TCP SEND REQUEST
14
TCP CLOSE REQUEST
Requests sent to the Ethernet Unit by sending commands through execution
of CMND(40), and when the Unit receives a command, it will return a
response. The response does not, however, indicate that processing has
been completed, and the status of the flags in the Socket Status Words
allocated to the Unit must be used to determine when processing has been
completed.
The results of processing will be stored in the words specified when
CMND(490) was executed once the requested processing has been
completed.
The socket service functions listed in the following table can be executed
either using Socket Service Request Switches or using CMND(490).
Protocol
UDP
Open UDP socket
Receive via UDP socket
Send via UDP socket
Close UDP socket
TCP
Open TCP socket, passive
Open TCP socket, active
Receive via TCP socket
Send via TCP socket
Close TCP socket
Name
Socket service request
Section 6-3
105

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents