B-30
FX Series PLC User's Manual - Data Communication Edition
N:N Network
7 Creating Programs
7.2 Creating Programs for Master Station (Station No. 0)
7.2 Creating Programs for Master Station (Station No. 0)
Create programs for the master station.
Arbitrarily create programs for reading and writing link devices.
M8038
Parameter setting
FNC 12
MOV
K0 D8176
FNC 12
MOV
K2 D8177
FNC 12
MOV
K1 D8178
FNC 12
MOV
K3 D8179
FNC 12
MOV
K5 D8180
0
M8184
M8185
M8191
Station No. 1
Data transfer sequence error
Station No. 2
Data transfer sequence error
Data transfer sequence ON
Make sure to start the program for setting the N:N Network
from step 0.
Program for setting the N:N Network
Y000
Y001
Y010
Station number setting: 0 (master station)
Station number "0" indicates the master station.
Slave station quantity setting: 2 (2 slave stations)
Set the number of connected slave stations.
[Setting range: 1 to 7]
Refresh range setting: 1 (pattern 1)
Set the pattern of devices used in communication.
[Setting range: 0 to 2]
(Only pattern 0 is applicable in the FX
0N
or FX
1S
Series.)
Number of retries: 3 (3 times)
Set the number of retrying communication after a link
error is detected.
[Setting range: 0 to 10]
Monitoring time: 5 (50 ms)
Set the time by which communication error is determined.
[Setting range: 5 to 255]
Program for indicating link errors
When a link error occurs in the station No. 1, Y000 is
set to ON.
When a link error occurs in the station No. 2, Y001 is set
to ON.
• Create this step for each connected slave station.
Note that the devices to be used are different
depending on the PLC Series.
For FX
0N
and FX
1S
Series:
M505 to M511 (station No. 1 to station No. 7)
For any series other than FX
0N
and FX
1S
Series:
M8184 to M8190 (station No. 1 to station No. 7)
While the N:N Network is executed, Y010 remains ON.
• Note that the devices to be used are different
depending on the PLC Series.
For FX
0N
and FX
1S
Series: M503
For any series other than FX
0N
and FX
1S
Series: M8191
Set the communication port to be used.
When using ch1, this step is not required.
When using ch2, program "OUT M8179."
(in the FX
3U
and FX
3UC
)
M8179
Channel
setting
This program is required to indicate the N:N Network status.