115
Using Socket Services by Manipulating Dedicated Control Bits Section 6-7
6-7-3 Socket Service Parameters
The Socket Service Parameter Areas in which parameters are set to request
socket services are in the CPU Bus Unit Area in the DM Area of the CPU Unit.
The Socket Service Parameter Areas are allocated as shown in the following
diagrams. The first word of in the DM Area allocated to the Ethernet Unit as a
CPU Bus Unit is referred to as “m” and is calculated as follows:
m = D30000 + (100
× unit number)
The configuration of each of the Socket Service Parameter Areas is shown in
the following diagram.
Socket Service Parameter Area 1
Socket Service Parameter Area 8
Socket Service Parameter Area 2
m+18
m+27
m+28
m+37
m+88
m+97
Offset
UDP/TCP socket number
Local UDP/TCP port number (0000 to FFFF Hex)
Remote IP address (00000000 to FFFFFFFF Hex)
Number of bytes to send/receive (0000 to 07C0 Hex)
Send/receive data address
Timeout value (0000 to FFFF Hex)
Response code
Remote UDP/TCP port number (0000 to FFFF Hex)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
+0
+1
+2
+3
+4
+5
+6
+7
+8
+9
Socket option