Rockwell Automation 1771-QA Stepper Positioning Assembly User Manual User Manual

Page 115

Advertising
background image

4–37

Example Programs

Publication 1771-UM002A–EN–P – May 2000

Rung 9
Offset rung for axis 1. When user input 110/04 is energized, bit
212/13 (MCW, offset bit) is true and the number of pulses
programmed in offset word 213 (file-to-file move instruction, rung
28) will be added or subtracted to the final position of each move
according to the state of bit 213/17 (subtract/add offset bit). Refer to
Offset Word in chapter 3.

Rungs 10 thru 27
Stop, reset, initialization preset, jog forward, jog reverse and offset
rungs for axis 2 and axis 3. These rungs function exactly the same as
rungs 1-9. However, the addresses are different since they pertain to
different axes.

Rung 28
Command file rung for axis 1 (includes offset and preset data). Each
time a false-to-true transition caused by a controlled stop (110/16),
reset (110/17), initialization preset (110/07) or offset (110/04) occurs,
file A (212-215) will be transferred to file R (300-303), which is the
write block transfer file.

Rungs 29 and 30
Same function as rung 28, but for axis 2 and axis 3.

Rung 31
Jog rung for axis 1. Each time a false-to-true transition caused by a
jog forward (110/15) or jog reverse (112/00) occurs, jog data in
words 212-223 is transferred to the stepper controller module.

Rungs 32 and 33
Same function as rung 31, but for axis 2 and axis 3.

Rung 34
Profile data (moves 1-10) for axis 1 is stored in file A (400-477).
When bit 110/14 is energized, file A (400-477) will be transferred to
the stepper controller module. Since the start bit is already set in
word 400 (MCW, bit 00), the profile is immediately started.

Rungs 35 and 36
Same function as rung 34, but for axis 2 and axis 3.

Advertising