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


 
5-222
5.4 Network Dedicated Instruction
5.4.25 OPEN instruction
ZP_OPEN
Program Example
The following program opens the connection 1 for TCP/IP communication using the Active open
process.
(The I/O signals of the Ethernet module are X/Y00 to X/Y1F)
[Structured ladder/FBD]
*1 : For divisions of and in the program, is necessary when the [Open settings] of GX Works2 is
used and is necessary when it is not used.
Open request
signal
Connection 1 open
request signal
Turns execution flag
ON when instruction
flag is ON
Execution type when
GX Works2-
[Open settings]
is used
Execution type when
D100-[control data]
is used
Application
setting
Host station port
number
Destination
IP address
Destination
port number
Opens connection
Turns normal
completion flag ON
Turns error
completion flag ON
*1
*1