Sample application programs chapter 10 – Rockwell Automation 1771-QB Linear Pos. User Manual
Page 162
![background image](/manuals/579588/162/background.png)
Sample Application Programs
Chapter 10
10Ć18
Figure 10.16
Program Rungs for Application Program # 2 (continued)
ELEMENT #
50098
Rung 2:4
AXIS 1
READY
N44:2
] [
0
AXIS 1
MOTION
BLOCKS
LOADED
R6:2
] [
DN
FILE #
MOV
MOVE
Source
131
Dest
N7:9
131
Rung 2:5
BTR
ENABLE
N7:0
] / [
15
BTW
ENABLE
N7:5
] / [
15
( EN )
( DN )
MOV
MOVE
Source
45
Dest
N7:8
45
BTW
BLOCK TRNSFR WRITE
Rack
00
Group
0
Module
0
Control Block
N7:5
Data file
N45:131
Length
0
Continuous
N
( ER )
Rung 2:6
[END OF FILE]
Rung 2:4
If both the ready bit and the sequencer done bit are high (the module has
received a valid parameter block and has loaded all the motion blocks), rung 2:4
moves the source address of the command block into the BTW’s control block
causing the programmable controller to send a command block when rung 2:5 is
executed.
Rung 2:5
Rung 2:5 writes the block selected by rung 2:1, 2:3 or 2:4 to the module.