![Omron CS1W-ETN01 Скачать руководство пользователя страница 132](http://html1.mh-extra.com/html/omron/cs1w-etn01/cs1w-etn01_operation-manuals_742528132.webp)
6-3
Section
Using Socket Services with CMND(490)
120
6-3-1 UDP/TCP Socket Status
The status of the UDP and TCP sockets is provided in the Socket Status Words
shown in the following diagram. There is a status word for each socket for both
UDP and TCP. The Socket Status Words are allocated in the CPU Bus Unit Area
in the CPU Area starting at the the word n+ 1. The value of n can be calculated
from the unit number as follows:
n = 1500 + (25 x unit number)
UDP Socket No. 1 Status
TCP Socket No. 1 Status
TCP Socket No. 2 Status
TCP Socket No. 3 Status
TCP Socket No. 4 Status
TCP Socket No. 5 Status
TCP Socket No. 6 Status
TCP Socket No. 7 Status
TCP Socket No. 8 Status
UDP Socket No. 2 Status
UDP Socket No. 3 Status
UDP Socket No. 4 Status
UDP Socket No. 5 Status
UDP Socket No. 6 Status
UDP Socket No. 7 Status
UDP Socket No. 8 Status
n+1
n+2
n+3
n+4
n+5
n+6
n+7
n+8
n+9
n+10
n+11
n+12
n+13
n+14
n+15
n+16
15
8
7
0
The flags shown in the following diagram are provided in the Socket Status
Words for socket service requests made with CMND(490).
Opening Flag
Receiving Flag
Sending Flag
Closing Flag
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Results Storage Error Flag
Socket Open Flag
Bit
Flag
Status
Manipulated
by
Unit operation
0
Opening Flag
ON
Unit
Turns ON when an open request is received.
OFF
Turns OFF when open processing has been completed.
1
Receiving Flag
ON
Turns ON when a receive request is received.
OFF
Turns OFF when receive processing has been completed.
2
Sending Flag
ON
Turns ON when a send request is received.
OFF
Turns OFF when send processing has been completed.
3
Closing Flag
ON
Turns ON when an close request is received.
OFF
Turns OFF when close processing has been completed.
14
Results Storage
Error Flag
ON
Unit
Turns ON when there is an error in the Results Storage Area
specified for the service request command to the Ethernet Unit.
This flag will turn ON at the same timing as turning OFF bits 0 to 3
(i.e., at completion of processing).
OFF
Turns OFF when the next request is received for processing.