6 - 13 6 - 13
MELSEC-F
6 FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST
CONTROL METHOD)
6.5.2 Fixed buffer communication program example (with the procedure exist control method)
This section explains the programming method in order to communicate data
(procedure exist control method) with an external device using the fixed buffers.
FX
3U
-1 side
FX
3U
-2 side
(1) Execution environment for the program example
(a) Send program (FX
3U
-1 station side)
1) Connection No. 1 is used for fixed buffer sending.
2) The communication parameter settings are assumed to have been set as
described in Section 5.6.1, "Active open processing/close processing".
3) Fixed buffer No. 1 send data
: Stored in D1000 to D1031
4) Fixed buffer No. 1 send instruction complete device
: M201
5) Fixed buffer No. 1 send instruction abnormal complete device
: M202
6) Fixed buffer No. 1 send instruction complete status
: D101
(b) Receive program (FX
3U
-2 station side)
1) Connection No. 1 is used to process the fixed buffer receiving in the
main program.
2) Connection No. 2 is used to process the fixed buffer receiving in the
interrupt program.
3) The Ethernet module is mounted as the second special module.
4) The unit number specified at the sequence program and FX
Configurator-EN (GX Developer) is 1.
5) Make Operational Settings in the following manner.
Communication data code
: Binary code (BFM#24 b1 : OFF)
Initial timing
: Always wait for OPEN (Communications
possible at STOP time) (BFM#24 b8 :
OFF)
IP address
: 10.97.85.223 (0A.61.55.DF
H
)
(BFM#106 to 107)
6) Adjust Open settings in the following manner.
Protocol
: TCP (BFM#32 b8 : OFF)
Open system
: Unpassive (BFM#32 b14, b15 : 10
H
)
Fixed buffer
: Receive (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)
Connection No.1 Host
station Port No.
: 8192 (BFM#40) (For use in main
program)
Connection No.2 Host
station Port No.
:
12288 (BFM#47) (For use in embedded
program)
7) Fixed buffer No. 1 receive data
: Stored in D500 to D503
Содержание FX3U-ENET
Страница 1: ...USER S MANUAL FX3U ENET ...
Страница 2: ......
Страница 159: ...8 6 8 6 MELSEC F 8 COMMUNICATION USING MC PROTOCOL MEMO ...
Страница 295: ...App 25 App 25 MELSEC F APPENDIX MEMO ...
Страница 297: ......