Setting data
Device
Item
(s2)[0]
Execution type/Completion type
(s2)[1]
Completion status
(s2)[2]
Application setting area
(s2)[3]
Host station port No.
(s2)[4]
Destination IP address
(s2)[5]
(s2)[6]
Destination port No.
(s2)[7] to
(s2)[9]
*2 "Destination IP address" and "Destination port No" are neglected at Unpassive open.
Precautions
• Use the Built-in Ethernet port QCPU of which the function version is B or later and the first five digits of the serial number
are '11012' or higher.
• Use the LCPU other than L02SCPU and L02SCPU-P.
Setting data
Specify which to use the parameter values set by GX Works2
or the setting values of the following control data ((s2)[2] to
(s2)[9]) at open processing of a connection.
0000H: Uses the parameter set in [Open settings] of GX
Works2.
8000H: Uses the settings of control data (s2)[2] to (s2)[9].
The instruction completion status is stored.
0: Normal completion
Other than 0: Error completion (error code)
...
b15 b14
(3)
0
(2)
(1) Communication method (protocol) (b8)
0: TCP/IP
1: UDP/IP
(2) With/without procedure in socket communication function
(b9)
1: Nonprocedural communication
(3) Open system (b15, b14)
00: Active open or UDP/IP
10: Unpassive open
11: Fullpassive open
Specify the port number of the host station.
*2
Specify the IP address of the external device.
*2
Specify the port number of the external device.
Unavailable
...
b9 b8
b0
(1)
0
7 SOCKET COMMUNICATION FUNCTION INSTRUCTION
Setting range
Setting side
0000H
User
8000H
System
(Refer to the
User
left.)
1H to 1387H
User
1392H to FFFEH
(400H or later is
recommended)
1H to
User
FFFFFFFFH
(FFFFFFFFH :
broadcast)
1H to FFFFH
User
(FFFFH:
broadcast)
System
7.1 Opening/Closing Connection
7
253