Fixed Buffer Communication Program Example (With The Procedure Exist Control Method); Fixed Buffer Communication - Mitsubishi MELSEC-F User Manual

Hide thumbs Also See for MELSEC-F:
Table of Contents

Advertisement

6 FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST
CONTROL METHOD)

6.5.2 Fixed buffer communication program example (with the procedure exist control method)

6 - 13
This section explains the programming method in order to communicate data
(procedure exist control method) with an external device using the fixed buffers.
FX
-1 side
3U
(1) Execution environment for the program example
(a) Send program (FX
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
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
Initial timing
IP address
6)
Adjust Open settings in the following manner.
Protocol
Open system
Fixed buffer

Fixed buffer communication

procedure
Pairing open
Existence confirmation
Connection No.1 Host
station Port No.
Connection No.2 Host
station Port No.
7)
Fixed buffer No. 1 receive data
: Stored in D500 to D503
FX
-2 side
3U
-1 station side)
3U
-2 station side)
3U
: Binary code (BFM#24 b1 : OFF)
: Always wait for OPEN (Communications
possible at STOP time) (BFM#24 b8 :
OFF)
: 10.97.85.223 (0A.61.55.DF
(BFM#106 to 107)
: TCP (BFM#32 b8 : OFF)
: Unpassive (BFM#32 b14, b15 : 10
: Receive (BFM#32 b0 : ON)
: Procedure exist (BFM#32 b9 : OFF)
: Disable (BFM#32 b7 : OFF)
: No confirm (BFM#32 b1 : OFF)
: 8192 (BFM#40) (For use in main
program)
12288 (BFM#47) (For use in embedded
:
program)
MELSEC-F
)
H
)
H
6 - 13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u-enetFx3uc-enet

Table of Contents