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

Page 114

Advertising
background image

4–36

Example Programs

Publication 1771-UM002A–EN–P – May 2000

Rungs 1 and 2
Controlled stop rungs for axis 1. When user input 110/16 is
energized, bit 221/06 (MCW, stop bit) and 212/07 (MCW, decl/inst
bit) are high and the contents of the file-to-file move instruction in
rung 28 are transferred to the stepper controller module. The stepper
controller module will perform a controlled stop using the decel
value in the move being processed at the time the stop command is
received.

Rung 3
Reset rung for axis 1. When user input 110/17 is energized, bit
212/04 (MCW, reset bit) is high and the contents of the file-to-file
move instruction in rung 28 is transferred to the stepper controller
module. All status, position and move data for axis 1 is cleared from
the memory of the stepper controller module.

Rung 4
Initialization preset rung for axis 1. When user input 110/07 is
energized, bit 214/17 (MS preset word, assert bit) is high and the
contents of the file-to-file move instruction in rung 28 is transferred
to the stepper controller module. Axis 1 will be preset according to
the number of pulses programmed in the MS and LS preset words
(words 214 and 215).

Rungs 5 and 6
Jog forward rungs for axis 1. When user input 110/15 is energized,
bit 212/15 (MCW, jog forward bit) is true and the jog data contained
in the file-to-file move instruction in rung 31 is transferred to the
stepper controller module. Axis 1 will jog forward until bit 110/15 is
de-energized (i.e. user releases pushbutton). When bit 110/15 is
de-energized (rung 6), and the jog forward inputs for axis 2 (112/04)
and axis 3 (112/11) are false, then axis 1 will decel to 0Hz according
to the decel value programmed in word 221 (file-to-file move
instruction, rung 31).

Rungs 7 and 8
Jog reverse rungs for axis 1. When user input 112/00 is energized,
bit 212/14 (MCW, jog reverse bit) is true and the jog data contained
in the file-to-file move instruction in rung 31 is transferred to the
stepper controller module. Axis 1 will jog forward until bit 112/00 is
de-energized and the jog reverse inputs for axis 2 and axis 3 are false
(rung 8). Axis 1 will decel to 0Hz according to the decel value
programmed in word 221 (file-to-file move instruction, rung 31).

Advertising