beautypg.com

Socket status read, 3-27 socket status read, Command block response block parameters – Omron CS1W-ETN21 User Manual

Page 220

background image

195

Command/Response Reference

Section 7-3

Response Codes

7-3-27 SOCKET STATUS READ

Reads the Ethernet Unit network socket status.

Command Block

Response Block

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.

Response code

Description

0000

Normal

1001

Command too large

27 64

Command

code

27 64

Socket status

Response

code

Command

code

32 bytes

32 bytes

Socket status