Socket Applications; Format - Omron CS Series Operation Manual

Ethernet units construction of networks
Hide thumbs Also See for CS Series:
Table of Contents

Advertisement

Socket Applications

7-2

Socket Applications

7-2-1

Format

Command Code
Socket Option
Socket Number
Results Storage Area
The MRES codes are shown in the following table along with the results they
indicate. Refer to 8-4-7 Troubleshooting with Response Codes for details on
response codes including the SRES.
MRES
Execution results
00
Normal completion
01
Local node error
02
Remote node error
03
Unit error (controller error)
04
Service not supported
05
Routing error
10
Command format error
11
Parameter error
22
Status error
23
Operating environment error
25
Unit error
The format of the following FINS commands partially differs when the sockets
are used.
Command code
MRC
SRC
27
01
02
03
04
10
11
12
13
14
The basic format of these commands is shown in the diagram below.
0
1
2
3
4
5
Results storage area
Command
code
Socket number
Socket option
Specifies the requested process.
For the TCP OPEN REQUEST (ACTIVE or PASSIVE), specifies whether or
not the keep-alive function is to be used. For all other commands it is dis-
abled. (Set to 0).
Specifies the socket number for which the process is requested, from 1 to 8.
Specifies the area to store the results of the requested process.
Name
UDP OPEN REQUEST
UDP RECEIVE REQUEST
UDP SEND REQUEST
UDP CLOSE REQUEST
PASSIVE TCP OPEN REQUEST
ACTIVE TCP OPEN REQUEST
TCP RECEIVE REQUEST
TCP SEND REQUEST
TCP CLOSE REQUEST
6
7
8
9
10
11
12
Parameters
Section 7-2
Page
169
170
172
173
174
177
180
181
183
Number of bytes from
the beginning of the frame
159

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj seriesCj1w-etn21

Table of Contents