![](/images/new-backgrounds/1300968/300968167x1.webp)
|
|
|
| 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
Sample: Socket interface information readout program
R0000 | |
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 ⎯