8-16
Serial Communications
Remote I/O Examples (cont.)
Example #2 – Ladder Logic Program (cont.)
B3:0
Rung 2:4
This rung sets up the BT buffer for a BTR and sets the Virtual BT_Enable.
1
7
Rung 2:5
This rung copies the BTR data from the 1747-SN, clears the Virtual BT_Enable, and clears the User Logic Bit.
Rung 2:6
This rung copies the BT information to the 1747-SN for execution.
L
10
I:1.0
User
Logic
BTR_Avail Virtual
BTW = 0
BTR = 1
N10:0
15
L
N10:0
Virtual
BT_Enable
Bit
I:1.0
10
13 7
N10:0 N10:100
BTR_Avail Virtual
BTW = 0
BTR = 1
Virtual
BT Done
Bit
15
U
N10:0
Virtual
BT_Enable
Bit
COP
COPY FILE
Source
Dest
Length
User
Logic
1
U
B3:0
COP
COPY FILE
Source
Dest
Length
Rung 2:7
END
#M1:1.100
#N10:100
74
#N10:0
#M0:1.100
74