Omron CS/CJ Series Network Card User Manual


 
140
Using Socket Services with CMND(490) Section 6-3
Note If there is more than one Communications Unit mounted to the PC, the FINS
network address must be set as a parameter for CMND(490) and a local net-
work table must be created in the routing tables from the CX-Programmer.
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 word n+ 1. The value of n can
be calculated from the unit number as follows:
n = 1500 + (25 x unit number)
The flags shown in the following diagram are provided in the Socket Status
Words for socket service requests made with CMND(490).
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
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.