Sockets; Using Sockets With The Ethernet Unit; Socket Port Numbers - Omron CJ1W-ETN11 Operation Manual

Sysmac cs/cj series ethernet units
Hide thumbs Also See for CJ1W-ETN11:
Table of Contents

Advertisement

Overview
Specific Socket Service Functions
6-1-2

Sockets

6-1-3

Using Sockets with the Ethernet Unit

6-1-4

Socket Port Numbers

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
Sockets are interfaces that allow TCP and UDP protocols to be used directly
from the user program. With personal computers, socket are provided as C
language interface libraries, which allow TCP or UDP protocols to be pro-
gramming using library functions. With UNIX computers, socket interfaces are
supported in the form of system calls.
The CS/CJ-series PCs support the socket service from the user program. The
user program requests service functions either by manipulating Socket Ser-
vice Request Switches in the CPU Bus Unit Area in the CIO Area or by send-
ing FINS commands to the Ethernet Unit by executing CMND(490) instruction
in the ladder diagram.
Socket communications services can be used to transfer arbitrary data
between a PC and a host computer or between two PCs. The Ethernet sup-
ports two socket services: a UDP socket service and a TCP socket service.
Refer to 2-1-3 Selecting Communications Services for a comparison of the
socket services and the FINS communications service.
The Ethernet Unit supports up to 16 simultaneous socket connections for the
socket services, 8 each for UDP and TCP sockets. Socket numbers 1 to 8 are
assigned to sockets for both UDP and TCP sockets. Sockets are managed
from the ladder-diagram program by assigning a socket port for each socket
number. The socket port number is assigned when the socket is opened.
Port numbers up to 1023 on a UNIX workstation can be used by the supe-
ruser only. Port numbers 0 to 255 are reserved for well-known ports. Conse-
Socket service request
Socket ports are
assigned to socket
UDP socket
numbers.
port 1
UDP socket 1
Socket
services
Sockets
TCP socket 8
TCP socket
port 65535
Section 6-1
UDP open request
105

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-etn11Cs/cj seriesCs1w-etn01W343-e1-07

Table of Contents