Specifications

2 - 17
2.3.1 Active open/close processing
The Active open executes the connection processing to the external device, which
TCP/IP connection is in the wait for OPEN status (Fullpassive/Unpassive), and
enables data communication.
PLC CPU
PLC CPU
Initial processing
Initial processing
Initial completion
Initial completion
Initial completion
Fullpassive/
Unpassive
open
Open completion
Open completion
Ethernet module
Initial request
Open
Waiting for
open request
Active open
Open request
Open completion
Open completion
Initial completion
Ethernet module
Initial request
The following describes an Ethernet module sequence program and a timing chart.
M0 M1
M1
M100 M101
M101
"U0"
K1
D0 M0
ZP.CLOSE
" U0"
K1
D100 M100
<<Open processing for connection No.1 using the dedicated OPEN instruction>>
direction
Set the control data to D0 to D8
Processing for normal completion
Processing for error completion
<<Close processing for connection No.1 using the dedicated CLOSE instruction>>
When using "Application" set in "Open settings" of GX Developer (*1)
Control data [D0]: H0
When setting "Application" in "Control data" of OPEN instruction (*1)
[D0]: H8000
Set [D1] to [D9] according to the application
ZP.OPEN
direction
Processing for normal completion
Processing for error completion
*1 The setting items of "Application" are as follows.
For details, refer to the Q Corresponding Ethernet Interface Module User's Manual
(Basic).
• Application of fixed buffers (For sending, For receiving)
• Destination existence check (Confirm, No confirm)
• Paring open (Pairs, No pairs)
• Communication method (TCP/IP, UDP/IP)
• Fixed buffer communication (Procedure exist, No procedure)
Open system (Active open or UDP/IP, Unpassive, Fullpassive)