Using Socket Services with Socket Service Request Switches
Parameter Settings
UDP Socket Services
Parameter
UDP/TCP socket No.
Local UDP/TCP port No.
Remote IP address
Remote UDP/TCP port No.
Number of bytes to send/receive
Send/Receive data address
Time out time
Response code
TCP Socket Services
Parameter
UDP/TCP socket No.
Local UDP/TCP port No.
Remote IP address
Remote UDP/TCP port
No.
Number of bytes to send/
receive
Send/Receive data
address
Time out time
Response code
UDP/TCP Socket No.
The following table shows the parameters that are required for each service
and the use of the parameters by the socket service.
No. of
words
(decimal values in
1
0001 to 0008 Hex
(1 to 8)
1
0000 to FFFF Hex
(0 to 65,535)
2
00000000 to FFFFFFFF Hex
(0.0.0.0 to 255.255.255.255)
1
0000 to FFFF Hex
(0 to 65,535)
1
0000 to 07C0 Hex
(0 to 1,984 bytes)
2
Memory area address
1
0000 to FFFF Hex
(0 to 65,535)
(0: No limit, 0.1 to 6,553.5 s)
1
---
Note W:
Written by user.
RW: Written by user at execution and then read for results at completion
R:
Read by user for results at completion
---:
Not used.
No. of
Range
words
(decimal values in
parentheses)
1
0001 to 0008 Hex
(1 to 8)
1
0000 to FFFF Hex
(0 to 65,535)
2
00000000 to FFFFFFFF Hex
(0.0.0.0 to 255.255.255.255
1
0000 to FFFF Hex
(0 to 65,535)
1
0000 to 07C0 Hex
(0 to 1,984 bytes)
2
Memory area address
1
0000 to FFFF Hex
(0 to 65,535)
(0: No limit, 0.1 to 6,553.5 s)
1
---
Note W:
Written by user.
RW: Written by user at execution and then read for results at completion
R:
Read by user for results at completion
---:
Not used.
Specify the number of the UDP or TCP socket to open.
Range
UDP
parentheses)
open
W
W
---
---
---
---
---
R
TCP
passive
open
W
W
W
RW
RW
W
RW
W
---
---
---
---
W
---
R
R
Section 6-2
Socket service
UDP
UDP
receive
send
W
W
---
---
R
W
R
W
RW
RW
W
W
W
---
R
R
Socket service
TCP
TCP
TCP
active
receive
send
open
W
W
---
---
---
---
---
---
RW
RW
W
W
W
---
R
R
UDP
close
W
---
---
---
---
---
---
R
TCP
close
W
---
---
---
---
---
---
R
115