5 - 38
MELSEC-F
COMMUNICATION PROCEDURE
5
5 - 38
Program example
This example explains a program for open processing/close processing when
Unpassive open is selected in the open system setting.
(1) Execution environment for the program example
(a) The Ethernet module is connected to the second special module. (The unit
number is setting 1)
(b) The unit number specified at the sequence program and in
FX Configurator-EN is 1.
(c) Adjust Operation settings in the following manner.
(d) Make open settings in the following manner.
(e) The following contact signals are used in the program.
X000 Open instruction
M100 Open request self-hold
M101 Open complete
M102 Closed indicator self-hold
M103 Cancel self-hold when closed
(2) Outline of the program example
(a) The open processing for connection No. 1 of the Ethernet module is
performed.
After the completion of the open processing, connection No. 1 waits for the
open request from the external device.
(b) The close processing for connection No. 1 is performed according to the
close instruction (X000=OFF) to the Ethernet module.
Communication data code : Binary code (BFM#24 b1 : OFF)
Initial timing
: Do not wait for OPEN (Communications
impossible at STOP time) (BFM#24 b8 : OFF)
IP address
: 10.97.85.223 (0A.61.55.DF
H
) (BFM#106 to 107)
Protocol
: TCP (BFM#32 b8 : OFF)
Open system
: Unpassive (BFM#32 b15, b14 : 10
H
)
Fixed buffer
: Send (BFM#32 b0 : ON)
Fixed buffer
communication procedure : Procedure exist (BFM#32 b9 : OFF)
Pairing open
: Disable (BFM#32 b7 : OFF)
Existence confirmation
: No confirm (BFM#32 b1 : OFF)
Local station Port No.
: 8192 (BFM#40)