(6) Program example
1.
Create the following programs in the project for the master station, local station, and submaster
station using GX Works2.
• Master station (station number 0)
Create programs of the same structure as "Sending/receiving processes with
the station No.1" by the number of slave stations (exclusive of the submaster station).
Change the interlock of SW00B0 according to the station numbers.
• Local station (station number 1)
Create programs of receiving data from a slave station of the same structure as "Receiving process from
the station No.0 (master station)" by the number of slave stations (exclusive of the submaster station).
Change the interlock of SB00BF to SW00B0.
Receiving process from
the station No.1
Sending process to the station No.1
(master operating station process)
Sending process of the own station
(master station)
Receiving process from
the submaster station
(submaster operating station process)
Receiving process from the station No.0
(master station)
Sending process of the own station
(local station)
CHAPTER 8 FUNCTIONS
Sending/receiving processes
with the station No.1
Sending/receiving processes
between the master station
and submaster station
Receiving process form
the station No.0
(master station)
195
8