Example #2 – ladder logic program – Rockwell Automation 150 USE MN/SMC DIALOG + CONTROLLER User Manual
Page 124
Advertising
Serial Communications
8-15
Example #2 – Ladder Logic Program
MOV
MOVE
Source
*
Dest
0
First Scan
S : 1
15
MOV
MOVE
Source
Dest
128
B3:0
1
7
U
13
10 15
I:1.0 I:1.0 N10:0
User
Logic
BTR_Avail BTW_Avail Virtual
BT_Enable
Bit
Virtual
BTW = 0
BTR = 1
N10:0
15
L
N10:0
Virtual
BT_Enable
Bit
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.
N10:0
7
15
U
13
N10:100
Virtual
BTW = 0
BTR = 1
Virtual
BT Done
Bit
Virtual
BT_Enable
Bit
N10:0
Rung 2:3
This rung turns off the Virtual BT_Enable when a BTW has completed.
N10:0
0
M1:1.100
N10:100
Advertising