Creating Programs For The Communication Testing - Mitsubishi Electric FX3U-232-BD User Manual

Melsec-f fx series programmable controllers data communication edition
Table of Contents

Advertisement

FX Series PLC User's Manual - Data Communication Edition
N:N Network
6.2

Creating Programs for the Communication Testing

Create the programs shown below for the master station and each slave station.
(In the communication test, set the refresh range to pattern 0.)
6.2.1
Creating a program for the master station
Create the program shown below for the communication test. (This program is not required during actual
operation.)
M8038
0
M8000
28
M8000
34
Specify device numbers for the
connected slave stations.
Caution
1) When using a PLC (such as an FX
information from slave stations to auxiliary relays (M), etc., and then monitor the auxiliary relays using a
programming tool. (Example: Change "K1Y004" to "K1M4".)
2) In the circuit from step 34, create a program for link devices (MOV instruction) for all connected slave
stations.
FNC 12
K0
D8176
MOV
FNC 12
K2
D8177
MOV
FNC 12
K0
D8178
MOV
FNC 12
K3
D8179
MOV
FNC 12
K5
D8180
MOV
M8179
FNC 12
K1X000
D0
MOV
FNC 12
D10
K1Y004
MOV
FNC 12
D20
K1Y010
MOV
FNC 12
D70
K1Y034
MOV
END
and FX
1S
6.2 Creating Programs for the Communication Testing
Set the number of slave stations to D8177.
The setting range is from K1 to K7.
When using ch1, this step is not required.
When using ch2, program "OUT M8179".
(Only in the FX
FX
FX
3G,
3GC,
Step for writing information from the master station (master
station → slave station)
The contents of X000 to X003 in the master station are
transferred to outputs (Y) in this slave station.
Steps for reading information from a slave station (slave
station → master station)
By using link devices, read information from all slave
stations.
The table below shows the link devices to be used:
Slave station No.
Link device
1
2
3
4
5
6
7
Series PLC) with a small number of outputs, transfer
3S
6 Test Run (Communication Test)
and FX
)
3U
3UC
Output (Y)
D10
Y004 to Y007
D20
Y010 to Y013
D30
Y014 to Y017
D40
Y020 to Y023
D50
Y024 to Y027
D60
Y030 to Y033
D70
Y034 to Y037
B-31
A
B
C
D
E
F
G
H
I
Apx.A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents