Omron CS1W-ETN21 operation manual Socket Status Read

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 220
Image 220

 

Command/Response Reference

Section 7-3

Response Codes

 

 

 

 

 

 

 

Response code

Description

 

 

 

 

 

0000

Normal

 

 

 

 

 

1001

Command too large

 

 

 

 

7-3-27 SOCKET STATUS READ

Reads the Ethernet Unit network socket status.

Command Block

27 64

Command code

Response Block

27 64

 

32 bytes

Command

Response

Socket status

code

code

 

32bytes

Socket status

Parameters

Socket Status (Response) Returns eight types of information in records of 32 bytes each. A maximum of 62 records can be returned. The format of each record is shown below.

Protocol (4 bytes)

The protocol used for the socket is returned as a number. 00 00 00 06: TCP; 00 00 00 11: UDP

Receive Queue (4 bytes)

The number of bytes in the reception queue.

Send Queue (4 bytes)

The number of bytes in the send queue.

Local IP Address (4 bytes)

The local IP address allocated to the socket.

Local Port Number (4 bytes)

The local port number allocated to the socket.

Remote IP Address (4 bytes)

The remote IP address allocated to the socket.

Remote Port Number (4 bytes)

The remote port number allocated to the socket.

195

Page 220
Image 220
Omron CS1W-ETN21 operation manual Socket Status Read