Serial Communications 8-17
1560D-UM051D-EN-P – February 2005
Example #2 – Ladder Logic Program
MOVE
Source M1:1.100
*
Dest N10:100
0
First Scan
S : 1
15
MOVE
Source 0
Dest N10:0
128
B3:0
1
13 10 15
I:1.0 I:1.0 N10:0
User
Logic
BTR_Avail BTW_Avail Virtual
BT_Enable
Rung 2:0
This rung clears the Virtual BT Command word on the first scan.
Rung 2:1
Copy the BT Status Bits from the 1747-SN into the Virtual BT Status Buffer.
Rung 2:2
This rung sets up the BT buffer for a BTW.
Rung 2:3
This rung turns off the Virtual BT_Enable when a BTW has completed.
Rung 2:3
This rung turns off the Virtual BT_Enable when a BTW has completed.
Rung 2:2
This rung sets up the BT buffer for a BTW.
Rung 2:0
This rung clears the Virtual BT Command word on the first scan.
MOV
MOV
Virtual
BTW = 0
BTR = 1
Virtual
BT_Enable
Bit
Virtual
BT_Enable
Bit
U
U
L
Virtual
BT Done
Bit
Virtual
BTW = 0
BTR = 1
N10:0 N10:100
7 13
15
15
N10:0
Bit
7
Rung 2:1
Copy the BT Status Bits from the 1747-SN into the Virtual BT Status Buffer.
MOVE
Source 0
Dest N10:0
128
MOVE
Source M1:1.100
Dest N10:100
0
Virtual
BT_Enable
Bit
N10:0