Chapter 4. Ladder Diagram (LD) Programming
70
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
GFK-2950C
4.2.3
Bit Sequencer
The Bit Sequencer (BIT_SEQ) function performs a bit sequence shift through a series of contiguous
bits.
The operation of BIT_SEQ depends on the value of the reset input (R), and both the
current value and previous value of the enabling power flow input (EN):
R Current
Execution
EN Previous
Execution
EN Current
Execution
Bit Sequencer Execution
ON
ON/OFF
ON/OFF
Bit sequencer resets
OFF
OFF
ON
Bit sequencer increments/decrements by
1
OFF
Bit sequencer does not execute
ON
ON/OFF
Bit sequencer does not execute
The reset input (R) overrides the enabling power flow (EN) and always resets the sequencer. When R
is active, the current step number is set to the value of the optional N operand. If you did not specify
N, the step number is set to 1. All bits in the bit sequencer, ST, are set to 0, except for the bit pointed
to by the current step, which is set to 1.
When EN is active and R is not active, and the previous EN was OFF, the bit pointed to by the current
step number is cleared. The current step number is incremented or decremented, based on the
direction (DIR) operand. Then the bit pointed to by the new step number is set to 1.
■
When the step number is being incremented and it goes outside the range of
(1
step number
Length), it is set back to 1.
■
When the step number is being decremented and it goes outside the range of
(1
step number
Length), it is set to Length.
The parameter ST is optional. If it is not used, BIT_SEQ operates as described above, except that no
bits are set or cleared. The function just cycles the current step number through its allowed range.
BIT_SEQ passes power to the right whenever it receives power.
Note:
Before using the BIT_SEQUENCER function block, the current step number (Word 1 in the
control block) must be set to an integer value between 1 and the length, as defined in the
function block properties. Failure to properly initialize the step number in the
BIT_SEQUENCER function block may result in the CPU going to STOP-HALT mode.
Asserting the Reset parameter (R), before using the BIT SEQUENCER function block assures
that the current step number is set to a valid value.
Summary of Contents for PACSystems RSTi-EP
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451 ...