Académique Documents
Professionnel Documents
Culture Documents
Technical School
Industrial Technology
Kaw Area
Technical School
Industrial Process
Control
Richard E. Stephens
CET Sr.
Programmable
Logic Controllers
Third Edition
Frank D. Petruzella
McGraw-Hill
Chapter 12
Sequencer and
Shift Register
Instructions
Sequencers
Sequencers are used whenever a repeatable operating
pattern is required.
Motor
Contacts
Mechanical Sequencers
Mechanical sequencers are often referred to as drum
switches, rotary switches, stepper switches, or cam
switches.
The mechanical cam-operated
sequencer switch uses an an
electric motor to drive the
cams. A series of leaf-springmounted contacts interacts
with the cam so that, in
different degrees of rotation of
the cam, various contacts are
closed and opened to energize
and de-energize various
electrical devices.
The cycle is
always the
same, and
each step
occurs for a
specific time.
Sequencer Instructions
The PLC sequencer instruction can be used to replace
electromechanical drum switches.
Sequencer Instructions
Sequencer instructions simplify your ladder program by
allowing you to use a single instruction or pair of
instructions to perform complex operations.
SQO SQC SQL
SQC
SQL
SQO
Sequencer
Compare
Sequencer
Load
Sequencer
Output
Controls
sequentialconditions
machine operation
by transferring
16-bit
Capture
reference
by
manually
stepping
the
machine
Controls
sequential
machine
operation
by
transferring
16-bit
through
aitsmask
to image
addresses to reference data for
through
operating
sequences.
through
a mask
to image addresses for controlling outputs.
monitoring
inputs.
Sequencer Program
A sequencer program can be event-driven or
time-driven.
#B3:0
001Fh
O:2
R6:0
4
2
c. 1, 8, and 12
b. 1 and 12
d. 4, 5, and 9
c. 0000000100011000
b. 1010101000101000
d. 0000100000000001
Sequencer Pairs
The sequencer input (SQI) and the sequencer output (SQO)
instructions can be used in pairs to monitor and control,
respectively, a sequential operation.
When programming PLC-5 sequencer input and output
instructions in pairs, use the same control address, length value,
and position value in each instruction.
Shift Registers
The PLC not only uses a fixed pattern of register (word)
bits, but it can easily manipulate and change individual
bits.
A bit shift register is a register that allows the shifting
of bits through a single register, or group of registers.
The bit shift register shifts bits serially (from bit to bit)
through an array in orderly fashion.
Shift Registers
A shift register can be used to simulate the movement or track the
flow of parts and information.
We use the shift register whenever we need to store the status of
an event that had previously happened so that we can act upon it
at a later time. This is accomplished by shifting either status or
values through data files.
Common applications include:
Tracking parts through an assembly line
Controlling machine or process operations
Inventory control
System diagnostics
A shift data or clock pulse causes each bit in the shift register to
move 1 position to the right. When the register's storage capacity is
exceeded shift data are lost at the end of the shift register.
Shift Register
Spray-Painting
Application
c. control
b. length
d. source
c. SQC
b. SQL
d. SQI
c. SQL
b. SQC
d. SQI