Omron CS1W-ETN21 Results Storage Area Response Codes, Network Relay Errors, Devices

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 252
Image 252

 

Results Storage Area Response Codes

Section 8-6

Network Relay Errors

For network relay errors using SEND(090) or RECV(098), check the path of

 

 

the command using the routing tables and the nature of the error using the

 

 

response code to eliminate the cause of the error.

 

For network relay errors using CMND(490), the location of the relay error is recorded in the second through third words of the response, as shown below.

Bit

First word

 

 

 

First byte

 

 

 

 

 

Second byte

 

 

7

6

5

4

3

2

1

0

7

6

5

4

3

2

1

0

1

Command code

Second word

7

6

5

4

3

2

1

0

7

6

5

4

3

2

1

0

 

1

Mai

n response code (MRE

S)

 

 

 

 

 

 

S-b-response code (SRES)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Relay error flag

 

 

 

 

 

 

 

 

 

1: PLC non-fatal error flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1: PLC fatal error flag

 

 

 

 

 

 

 

 

 

 

 

Third word

7

6

5

4

3

2

1

0

7

6

5

4

3

2

1

0

1

Error network address

 

 

 

Error node address

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8-6

Results Storage Area Response Codes

 

 

 

The response codes stored in the Results Storage Area can be used to trou-

 

 

 

bleshoot socket service problems. Refer to Socket Services Parameter Area 1

 

 

 

to 8 (Ethernet Unit to CPU Unit) on page 88 for the location of the response

 

 

 

codes stored in the Results Storage Area.

 

 

 

The UNIX socket service error messages corresponding to the response

 

 

 

codes are given in the following table. Refer to the documentation for the

 

 

 

devices involved when communicating between an Ethernet Unit and other

 

 

 

devices.

 

 

 

 

 

Response

UNIX error

Description

Probable remedy

code

 

message

 

 

 

 

 

 

 

0003

 

ESRCH

No such process

Close the local socket and try reopening it.

 

 

 

 

 

0006

 

ENXIO

No such device or address

 

 

 

 

 

 

0009

 

EBADF

Bad file number (incorrect socket

 

 

 

 

specification)

 

 

 

 

 

 

000D

 

EACCES

Permission denied

Check the IP address of the remote node and

 

 

 

(Broadcast address specified for

try to reconnect.

 

 

 

remote IP address for active TCP

 

 

 

 

open)

 

 

 

 

 

 

000E

 

EFAULT

Bad address (copy failed between

Close the local socket and try reopening it.

 

 

 

kernel and user area)

 

 

 

 

 

 

0011

 

EEXIST

File exists

 

 

 

 

 

 

0016

 

EINVAL

Invalid argument (socket library

 

 

 

 

argument error)

 

 

 

 

 

 

0018

 

EMFILE

Too many open files (More than 32

 

 

 

 

sockets)

 

 

 

 

 

 

0020

 

EPIPE

Broken pipe (remote node closed

Close the local socket.

 

 

 

socket)

 

 

 

 

 

 

003C

 

EPROTONO-

Protocol not supported (protocol

Close the local socket and try reopening it.

 

 

SUPPORT

other than UDP, TCP, or RAW speci-

 

 

 

 

fied)

 

 

 

 

 

 

003D

 

EPROTOTYPE

Protocol wrong type for socket

 

 

 

 

 

 

003E

 

ENOBUFS

No buffer space available

There is too much load (traffic) on the Ethernet

 

 

 

 

Unit. Check your user applications.

 

 

 

 

 

227

Page 252
Image 252
Omron CS1W-ETN21 Results Storage Area Response Codes, Network Relay Errors, Codes stored in the Results Storage Area