168
3 PROGRAMMING
3.2 Communication Example Using the Submaster Function
Program examples
• Master station (station No.0)
Classification Label name Description Device
Module label GF11_1.bSts_DataLinkError Data link error status of own station SB0049
GF11_1.bOpe_Submaster Own station master/submaster function
operation status
SB004E
GF11_1.bnSts_DataLinkError_Station[1] Data link status of each station (station No.1) SW00B0.0
Label to be defined Define global labels as shown below:
(18) Receive/send processing (master operating station processing) from/to the station number 1
(29), (30) Create programs of the same structure as "Send/receive processing from/to the station number 1" by the number of slave stations (exclusive of the
submaster station) between (29) and (30).
Change the interlock of 'Data link status of each station' (SW00B0) according to the station numbers.
(30) Send processing of the own station (master station)
(36) Receive processing (submaster operating station processing) from the submaster station