Справочник Пользователя для Mitsubishi Electronics fx3u

Скачать
Страница из 284
6 - 14
MELSEC-F
FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST 
CONTROL METHOD)
6
6 - 14
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.
(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 unit number specified in the sequence program and 
 
FX Configurator-EN-L is 0.
3) The communication parameter settings are assumed to have been set as 
described in Subsection 5.6.1, "Active open processing/close 
processing".
(see the table below)
4) Fixed buffer No. 1 send data
 
: Stored in D1000 to D1031
5) Fixed buffer No. 1 send instruction complete device
 
: M201
6) Fixed buffer No. 1 send instruction abnormal complete device
 
: M202
7) Fixed buffer No. 1 send instruction complete status
 
: D101
[Operational settings]
[Open settings]
Setting name
Settings in FX Configurator-EN-L
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-L (No.1)
Settings in the program
protocol
TCP
BFM#32 b8:OFF
Open system
Active
BFM#32 b14,b15:00
Fixed buffer
Sending
BFM#32 b0:OFF
Fixed buffer communication
Procedure exist
BFM#32 b9:OFF
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