
User Manual
Chapter 10
GFK-1503F
Jan 2020
Instruction Set Reference
108
Figure 70
10.1.8
Bit Operation Functions Bit Test
The Bit Test function tests a bit within a bit string to determine whether that bit is currently
1 or 0. The result of the test is placed in output Q.
Each sweep power is received, the Bit Test function sets its output Q to the same state as
the specified bit. If a register rather than a constant is used to specify the bit number, the
same function block can test different bits on successive sweeps. If the value of BIT is outside
the range (1 < BIT < (16 * length) ), then Q is set OFF.
A string length of 1 to 256 words can be selected.
Figure 71
Parameters of the Bit Test Function
Input/ Output Choices
Description
enable
flow
When the function is enabled, the bit test is
performed.
IN
I, Q, M, T, S, G, R, AI, AQ
IN contains the first word of the data to be
operated on.
BIT
I, Q, M, T, G, R, AI, AQ,
constant
BIT contains the bit number of IN that should be
tested. Valid range is (1 < BIT < (16 * length)).
Q
flow, none
Output Q is energized if the bit tested was a 1.
Example
In the example, whenever input %I0001 is set, the bit at the location contained in reference
PICKBIT is tested. The bit is part of string PRD_CDE. If it is 1, output Q passes power flow and
the coil %Q0001 is turned on.
Содержание PaCSystems VersaMax Series
Страница 1: ...User Manual GFK 1503F Jan 2020 PACSystemsTM VersaMax PLC USER MANUAL ...
Страница 85: ...User Manual Chapter 7 GFK 1503F Jan 2020 CPU Operation 71 7 1 Parts of the CPU Sweep Figure 47 ...
Страница 284: ...User Manual Chapter 14 GFK 1503F Jan 2020 PID Built in Function Block 270 Figure 216 ...