6 F 3 B 0 3 6 2

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

Bit

Condition under which the bit is set to 1

Condition under which the bit is reset to 0

 

no.

 

 

 

 

 

F

TCP

TCP used by the socket

The socket closed in response to a close request

 

 

 

 

 

 

 

E

UDP

UDP used by the socket

The socket closed in response to a close request

 

 

 

 

 

 

 

D

AOPEN

TCP socket in active open state

The socket closed in response to a close request

 

 

 

 

 

 

 

C

POPEN

TCP socket in passive open state or UDP

The socket closed in response to a close request

 

 

 

socket in open state

 

 

 

B

CONN

TCP connection established

Disconnected by the local port with a close request

 

 

 

 

Disconnected by the remote port

 

 

 

 

 

 

 

A

RCV

Received text present

No received text

 

 

 

 

 

 

9

RCLOSE

An established TCP connection disconnected

The socket closed in response to a close request

 

 

 

by the remote port

 

 

8

NOACK

No response received from the remote port for

The socket closed in response to a close request

 

 

 

a local port send operation in a state where a

 

 

 

 

 

TCP connection was established, and the TCP

 

 

 

 

 

resend function resulted in a timeout (because

 

 

 

 

 

the remote port was down, etc.).

 

 

 

 

 

If the wait time exceeds the set value during a

When a TCP active open request is reissued.

 

 

 

TCP active open request.

 

 

 

 

 

This bit is not set to 1 for a TCP passive open

 

 

 

 

 

request timeout.

 

 

A socket status in which neither AOPEN nor POPEN is set to 1 indicates that the socket is in the closed state.

Important items

This area is a read-only area. Do not attempt to write this data with the WRITE instruction. It will no longer be possible to acquire correct data after such an operation.

Sample: Socket interface information readout program

R0000

1- -[03907 MOV RW010][00005 MOV RW011][H00FE READ RW010 -> D1000]--

READ instruction description

 

H00FE: Module designation. The Ethernet Port must specify H00FE.

RW010: Specifies the start address of the socket status information. If 03907 (0F4BH) is specified, the socket status information for socket 1 will be read out.

RW011: Specifies the number of words (00005) to be read out.

D1000: Specifies the starting address of the area to hold the read out socket status information.

In this case, the read out downloaded information is stored at locations D1000 to D1004.

Setting R0000 to 1 will store the socket status information for socket 1 at locations D1000 to D1004.

83

Page 84
Image 84
Toshiba T2N instruction manual Tcp