Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
7.1 SOCOPEN Instruction
7-3
7
SOCKET COMMUNICATION
FUNCTION INSTRUCTION
SP_SOCOPEN
SP_SOCOPEN
Control Data
*1 : "Destination IP address" and "Destination port No" are neglected at Unpassive open.
Precautions
(1) 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.
(2) Use the LCPU other than L02SCPU and L02SCPU-P.
Device Item Setting data Setting range Setting side
[0]
Execution type/
Completion type
Specify which to use the parameter values set by GX Works2 or the
setting values of the following control data ( [2] to [9]) at open
processing of a connection.
0000H: Uses the parameter set in [Open settings] of GX Works2.
8000
H: Uses the settings of control data [2] to [9].
0000
H,
8000
H
User
[1]
Completion status
The instruction application status is stored.
0 : Normal completion
Other than 0 : Error completion (error code)
System
[2]
Application setting area
Communication method (protocol)
0: TCP/IP
1: UDP/IP
With/without procedure in socket communication function
1: Nonprocedural communication
Open system
00: Active open or UDP/IP
10: Unpassive open
11: Fullpassive open
(See the left
column.)
User
[3]
Host station port No. Specify the port number of the host station.
1H to 1387H,
1392
H to
FFFE
H
(400H or later
is
r
ecommended)
User
[4]
[5]
Destination IP address
*2
Specify the IP address of the external device.
1H to
FFFFFFFF
H
(FFFFFFFFH :
broadcast)
User
[6]
Destination port No.
*2
Specify the port number of the external device.
1H to FFFFH
(FFFFH:
broadcast)
User
[7]
to
[9]
Unavailable
System
s2
s2
s2
s2 s2
s2
s2
[2]
b15b14b13b10b9b8b7 b0to to
00
s2
3 2 1
s2
s2
s2
s2
s2
s2