![Mitsubishi Electric MELSEC System Q Скачать руководство пользователя страница 267](http://html.mh-extra.com/html/mitsubishi-electric/melsec-system-q/melsec-system-q_special-instructions-manual_239154267.webp)
7 SOCKET COMMUNICATION FUNCTION INSTRUCTION
7.4 SOCCINF Instruction
265
7
Setting data
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.
Device
Item
Setting data
Setting range
Setting side
(s2)[0]
System area
(s2)[1]
Completion status
The instruction completion status is stored.
0: Normal completion
Other than 0: Error completion (error code)
System
Device
Item
Setting data
Setting range
Setting side
(d)[0]
(d)[1]
Destination IP address
The IP address of the external device is stored.
1H to
FFFFFFFFH
0H : No
destination
(FFFFFFFFH :
broadcast)
System
(d)[2]
Destination port No.
The port number of the external device is stored.
1H to FFFFH
(FFFFH:
broadcast)
System
(d)[3]
Host station port No.
The port number of the host station is stored.
1H to 1387H
1392H to FFFEH
System
(d)[4]
Application setting area
(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
System
[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;
b15 b14
b9 b8
0
(1)
(2)
0
b0
…
…
(3)
Reads data from
the connection
number 1
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......