Omron CS1W-ETN21 operation manual Socket Applications, Format

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 182
Image 182

Socket Applications

 

Section 7-2

 

The MRES codes are shown in the following table along with the results they

 

indicate. Refer to 8-5 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

 

 

 

 

 

7-2

Socket Applications

 

 

 

 

 

The format of the following FINS commands partially differs when the sockets

 

 

are used.

 

 

 

 

 

 

 

 

 

 

 

Command code

Name

Page

 

 

 

 

 

 

 

 

MRC

SRC

 

 

 

 

 

 

 

 

 

 

27

01

UDP OPEN REQUEST

167

 

 

 

 

 

 

 

 

 

02

UDP RECEIVE REQUEST

168

 

 

 

 

 

 

 

 

 

03

UDP SEND REQUEST

169

 

 

 

 

 

 

 

 

 

04

UDP CLOSE REQUEST

171

 

 

 

 

 

 

 

 

 

10

PASSIVE TCP OPEN REQUEST

172

 

 

 

 

 

 

 

 

 

11

ACTIVE TCP OPEN REQUEST

174

 

 

 

 

 

 

 

 

 

12

TCP RECEIVE REQUEST

177

 

 

 

 

 

 

 

 

 

13

TCP SEND REQUEST

178

 

 

 

 

 

 

 

 

 

14

TCP CLOSE REQUEST

180

 

 

 

 

 

 

7-2-1

Format

 

 

 

The basic format of these commands is shown in the diagram below.

 

0 1 2 3 4 5 6 7 8

9 10 11 12

 

Number of bytes from

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the beginning of the frame

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command

 

 

Results storage area

Parameters

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Socket number

 

 

 

 

 

 

 

 

 

Socket option

 

 

 

 

 

 

Command Code

Specifies the requested process.

 

 

 

 

 

 

Socket Option

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).

 

 

 

 

 

 

Socket Number

Specifies the socket number for which the process is requested, from 1 to 8.

Results Storage Area

Specifies the area to store the results of the requested process.

157

Page 182
Image 182
Omron CS1W-ETN21 operation manual Socket Applications, Format