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 (1) and (2) in the program, (1) is necessary when the [Open settings] of GX Works2 is used and (2) is necessary when it
is not used.
5 MODULE DEDICATED INSTRUCTION
196
5.4 Network Dedicated Instruction
Open request
signal
Connection 1 open
request signal
Turns execution flag
ON when instruction
flag is ON
Execution type when
*1
GX Works2-
[Open settings]
is used
Execution type when
*1
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