Mitsubishi Electric MELSEC-L Special Instructions Manual page 267

Melsec-q/l structured programming manual
Hide thumbs Also See for MELSEC-L:
Table of Contents

Advertisement

Setting data
Device
Item
(s2)[0]
System area
(s2)[1]
Completion status
Device
Item
(d)[0]
Destination IP address
(d)[1]
(d)[2]
Destination port No.
(d)[3]
Host station port No.
(d)[4]
Application setting area
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.
Program example
• The following program reads connection information of the connection number 1.
[Structured ladder/FBD]
[ST]
IF(Var_Flag_Inst=TRUE)THEN
SP_SOCCINF( TRUE, "U0", 1, Var_ControlData, Var_Connection ); (* Reads data from the connection number 1 *)
END_IF;
Setting data
The instruction completion status is stored.
0: Normal completion
Other than 0: Error completion (error code)
Setting data
The IP address of the external device is stored.
The port number of the external device is stored.
The port number of the host station is stored.
...
b15 b14
b9 b8
(3)
0
(2)
(1)
(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
7 SOCKET COMMUNICATION FUNCTION INSTRUCTION
Setting range
Setting range
1H to
FFFFFFFFH
0H : No
destination
(FFFFFFFFH :
broadcast)
1H to FFFFH
(FFFFH:
broadcast)
1H to 1387H
1392H to FFFEH
...
b0
0
Reads data from
the connection
number 1
7.4 SOCCINF Instruction
Setting side
System
Setting side
System
System
System
System
7
265

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q

Table of Contents