Receiving station: Local station (station No.1)
Classification
Setting details
Label to be defined
Define global labels as shown below:
• Program flow
The master station checks that the send request bStartDirection (M0) is turned on, and transfers contents of uTransferFrom [0] to [3] to the send data W0 to
W3.
When the transfer is completed, the master station turns ON B0.
The local station checks that B1000 is turned ON, and transfers contents of the receive data W1000 to W1003 to uTransferTo [0] to [3] (D0 to D3).
When the transfer is completed, the local station turns on B0.
The master station checks that B1000 is turned ON, and turns OFF B0.
The local station checks that B1000 is turned off, and turns OFF B0.
■ Data assurance by handshake of the link relay
In communications using LB and LW, the link relay (LB) is sent after the link register (LW). Therefore, data inconsistency of the
link register (LW) can be prevented by handshake in the data of the link relay (LB).
The following shows the program example when 'Cyclic data (station No.0)' (W0 to W3) of the master station is sent to 'Cyclic
data (station No.1)' (W0 to W3) of the local station.
A handshake is established by turning on 'Handshake (station No.0)' (B0) of the master station and turning on 'Handshake
(station No.1)' (B100) of the local station after the send data has been stored.
No.0
No.1
RD78G
RJ71GN11-T2
• Data flow
Send
request
Send data (W)
B100
SET B0
W0
W100
CPU module
B0
LB0
Station
Station
No.1
No.1
LB100
Station
Station
No.2
No.2
LW0
Station
Station
No.1
No.1
LW100
Station
Station
No.2
No.2
Local station
CPU module
LB0
B0
Station
Station
No.1
No.1
LB100
B100
Station
Station
No.2
No.2
W0
LW0
Station
Station
No.1
No.1
LW100
W100
Station
Station
No.2
No.2
B0
Receive data (W)
Cyclic transmission
Link refresh
1 FUNCTIONS
1.1 Cyclic Transmission
1
43