12Bit Operation Functions Bit Sequencer - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Input/ Output
enable
IN
ok
POS
R Current
Execution
OFF
OFF
OFF
OFF
ON
Instruction Set Reference
For public disclosure
10.1.11.1 Parameters for the Bit Position Function
Choices
flow
I, Q, M, T, S, G, R, AI, AQ
flow, none
I, Q, M, T, G, R, AI, AQ
10.1.11.2 Example
In the example, if %I0001 is set, the bit string starting at %M0001 is searched until a bit
equal to 1 is found. Coil %Q0001 is turned on. If a bit equal to 1 is found, its location
within the bit string is written to %AQ001. If %I0001 is set, bit %M0001 is 0, and bit %
M0002 is 1, then the value written to %AQ001 is 2.
%I0001
BIT_
POS
WORD
%M0001
IN
Q
%AQ0001
POS
10.1.12 Bit Operation Functions Bit Sequencer
The Bit Sequencer function performs a bit sequence shift through an array of bits.
BIT_
Enable
SEQ
Reset
R
Direction
DIR
Number
STEP
Starting Address
ST
Address
The operation of the function depends on the previous value of the parameter EN:
EN Previous
EN Current
Execution
Execution
OFF
OFF
ON
ON
ON/OFF
Description
When the function is enabled, a bit search
operation is performed.
IN contains the first word of the data to be
operated on.
The OK output is energized whenever enable is
energized.
The position of the first nonzero bit found, or zero
if a nonzero bit is not found.
OK
Bit Sequencer Execution
Bit sequencer does not execute.
OFF
Bit sequencer
ON
increments/decrements by 1.
Bit sequencer does not execute.
OFF
Bit sequencer does not execute.
ON
Bit sequencer resets.
ON/OFF
%Q0001
( )
GFK-1503E User Manual 135

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents