Target device IP address
Target device port
Host Station Port No.
Application setting area
*1 The "Set by" column indicates the following.
System: The CPU module stores the execution result of the SP.SOCCINF instruction.
*2 In case of execution for an unopened connection, 0H is returned.
*3 Because host station port numbers, 1 to 1023 (0001H to 03FFH), are assigned for reserved port numbers and 61440 to 65534 (F000H
to FFFEH) are used for other communication functions, using 1024 to 5548, 5570 to 61439 (0400H to 15ACH, 15C2H to EFFFH) is
recommended. Do not specify 5549 to 5569 (15ADH to 15C1H) because these ports are used by the system.
This instruction reads connection information specified in (s1).
The connection number specified by (s1) is other than 1 to 8.
The device number specified by (s2) or (d) is outside the range of the number of device points.
Device that cannot be specified is specified.
When M5000 is turned on, connection information of connection No.1 is read.
• Devices used
7 SOCKET COMMUNICATION FUNCTION
7.4 Socket Communication Function Instructions
Completion status is stored
Other than 0000H: Failed (Error code)
Refer to Page 150 Error Codes
IP address of the target device is stored.
Port number of the target device is stored.
Port number of the host station is stored.
b10 b9 b8 b7
 Communication method (protocol)
 Socket communication procedure
1: Non-protocol method
 Open system
00: Active open or UDP/IP
10: Unpassive open
11: Fullpassive open
SP.SOCSND instruction control data
Storage location of connection information
1 to 3758096382
1 to 65534 (0001H to
1 to 5548, 5570 to 65534
(0001H to 15ACH, 15C2H to
Shown on left side
Execute reading connection
information of connection No.1