5 - 31
MELSEC-F
COMMUNICATION PROCEDURE5
5 - 31
Program example
This example explains a program for open processing/close processing when
Active 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 FX Configurator-EN
is 1.
(c) Make Operation settings in the following manner.
(d) Make open settings in the following manner.
(e) The following contact signals are used in the program.
(f) The area enclosed with in the program example should be used when
the [Open settings] Ethernet module parameters are not set for
FX Configurator-EN.
This part of the program is not required when the [Open settings] parameters
are used for FX Configurator-EN.
(2) Outline of the program example
(a) After each parameter is set in FX Configurator-EN or the sequence program
and written to the Ethernet module, re-initialize or power ON the module
again and confirm the completion of the initial processing via buffer memory
operations.
(b) The Ethernet module performs the open processing for connection No. 1 to
the external device set in the [Open settings] or control data.
(c) The close processing for connection No. 1 is performed according to the
close instruction to the Ethernet module or the close request from the
external device.
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.222 (0A.61.55.DE
H) (BFM#106 to
107)
Protocol : TCP (BFM#32 b8 : OFF)
Open system : Active (BFM#32 b14, b15 : 00
H)
Fixed buffer :Send (BFM#32 b0 : OFF)
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. :4096 (BFM#40)
Transmission target device
IP address : 10.97.85.223 (0A.61.55.DF
H) (BFM#41 to 42)
Transmission target device
Port No. : 8192 (BFM#43)
Ethernet module status : M110 to M115
Connection No.1 open/close status and instruction : D100