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

Page 87

Advertising
background image

4–9

Example Programs

Publication 1771-UM002A–EN–P – May 2000

Preset and Jog Data

Preset and jog data are programmed in a 10-word moveset. The
moveset data is contained in words 310-321 of the file-to-file move
instruction having counter address 0036 as shown in rung 12 (Figure
4.4). The preset and jog data have been logged on the Moveset Data
form (Figure 4.3). The function of the data is summarized in Table
4.A.

Important:

Bits in the moveset control word and single move
control word have been set in hexadecimal notation for
convenience so that move data can be entered in
decimal numbers. The equivalence between
hexadecimal and binary must be known. Otherwise, the
binary data monitor mode would have to be used
separately for setting bit patterns in the control words.

Table 4.A
Functions of Jog/Preset Data (1-Axis Program)

Position
Number

1

Equivalent
Word

2

Word
Description

Function

001

310

Moveset Control word

Bit 10 is set to identify axis 1. (The
hex value of 1 = 0012 in bits 12-10,
respectively.)

002

311

Offset Word

Ignored in this example

003, 004

312, 313

ML, LS Preset Words

Preset of 25

005

314

Single Move Control
Word

Bit 3 is set to identify the moveset as
jog data. Bits 16 & 17 are set to
identify the single move control word.

006

315

Ramp Time

0.5 second to accelerate to final rate

007

316

Final Rate

10 pulses/second or 1000
pulses/second depending on the bit
pattern programmed in rungs 11 and
12.

008

317

Decel Time

0.5 second to decelerate from final
rate to zero.

009, 010

320. 321

Final Position of the jog

999,999 pulses. Allows maximum
travel of the jog move if/as needed.
This could also be programmed as
000,000.

1

Position number of the data monitor display of FFM 0036.

2

Equivalent words in file A of FFM 0036.

Advertising