7 - 10
MELSEC-F
FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE
CONTROL METHOD)
7
7 - 10
7.5.2 Fixed buffer communication program example (with the no procedure control method)
This section explains the programming method in order to communication data (through
the no procedure control method) with an external device using the fixed buffers.
(1) Execution environment for the program example
(a) Send program (FX
3U
-1st station)
1) Connection No. 1 is used for fixed buffer sending.
2) The communication parameters settings are assumed to have been set
as described in Subsection 5.6.1, "Active open processing/close
processing" except the "Fixed buffer communication" parameter.
(see the table below)
3) Fixed buffer No. 1 send data
: Stored in D1000 to D1031
4) Fixed buffer No. 1 send Send instruction complete device
: M201
5) Fixed buffer No. 1 send Send instruction abnormal complete device
: M202
6) Fixed buffer No. 1 send Send instruction complete status
: D101
[Operational settings]
[Open settings]
Setting name
Settings in FX Configurator-EN
Settings in the program
Communication data code setting
Binary code
BFM#24 b1:OFF
Initial timing
Do not wait for OPEN
(Communications impossible at STOP time)
BFM#24 b8:OFF
Local station IP address
10.97.85.222 (0A.61.55.DE
H
)
BFM#106 to 108
Send frame setting
Ethernet (V2.0)
BFM#24 b5:OFF
TCP Existence confirmation setting Use the Ping
BFM#24 b4:OFF
Setting name
Settings in FX Configurator-EN (No.1)
Settings in the program
protocol
TCP
BFM#32 b8:OFF
Open system
Active
BFM#32 b15,b14:00
Fixed buffer
Sending
BFM#32 b0:OFF
Fixed buffer communication
No procedure
BFM#32 b9:ON
Paring open
No pairs
BFM#32 b7:OFF
Existence confirmation
No confirm
BFM#32 b1:OFF
Local station Port No.[Decimal]
4096
BFM#40
Destination IP address
10.97.85.223 (0A.61.55.DF
H
)
BFM#41,42
Destination Port No.[Decimal]
8192
BFM#43
FX
3U
-1st station
FX
3U
-2nd station