21ć3 – Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 327

Advertising
background image

Sequencer

Chapter 21

21-3

Figure 21.3

Masking Transfer Data

0

1

0

1

1

0

1

0

1

0

0

1

1

0

0

1

1

1

1

0

1

0

0

0

0

1

1

1

1

0

0

0

Sequencer Word

(Current Step)

Mask Word

Output Word prior to

Sequencer Operations

Output word result after

Sequencer Operations

10393-I

Other instructions can change a mask in the user program. If a changing
mask is required for different steps in the sequencer operation, a Get/Put or
file move can be used.

ATTENTION: When choosing a mask word address, be sure
that the next 1, 2, or 3 consecutive word addresses are not
already assigned. Other data written into a mask could cause
unpredictable machine operation. This could cause damage to
your equipment and/or injury to your personnel.

Only one step is executed at a time for each instruction.

The Sequencer Input instruction can be programmed in the same rung as
the Sequencer Output instruction. The sequencer input counter (step
counter) can be indexed by the Sequencer Output instruction. The step
counter in both instructions is given the same address. When programmed
in this manner, the Sequencer Input and Output instructions will track
through a controlled sequence of operations. The length of the sequencer
is equal to the number of steps (Seq Length) in the sequencer data table.

Use Figure 21.4 while you read about each sequencer instruction.

Programming Limitations

Sequencer Instructions

Advertising