B-38
FX Series PLC User's Manual - Data Communication Edition
N:N Network
8 Practical Program Examples
8.1 Practical Example 1 (Pattern 2)
8.1.3 Setting contents
The program examples shown later adopt the following communication parameters:
8.1.4 Setting program for master station
For the master station setting program, refer to the program shown below.
The program shown below consists of three blocks, "parameter setting program," "error indication program"
and "operation program."
1. Parameter setting program
2. Error indication program
Because the master station does not recognize errors within itself (the master station), programs for errors
within itself are not required.
System device Master station Station No. 1 Station No. 2 Contents
D8176 K 0 K 1 K 2 Station number settings
D8177 K 2 — — Total number of slave stations: 2
D8178 K 2 — — Refresh range: Pattern 2
D8179 K 5 — — Number of retries: 5
D8180 K 7 — — Monitoring time: 70 ms
Parameter setting
M8038
Station number settings: 0 (master station)
Slave station quantity setting: 2 (2 slave stations)
Refresh range setting: 2 (pattern 2)
Number of retries setting: 5 (5 times)
Monitoring time setting: 7 (70 ms)
0
FNC 12
MOV
K 0 D8176
FNC 12
MOV
K 2 D8177
FNC 12
MOV
K 2 D8178
FNC 12
MOV
K 5 D8179
FNC 12
MOV
K 7 D8180
Make sure to start from step 0.
M8184
Data transfer sequence error in slave station No. 1
Y001
M8185
Data transfer sequence error in slave station No. 2
Y002
M8191
Data transfer sequence ON
Y003