10Bit Operation Functions Masked Compare - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Input/ Output
enable
IN
BIT
ok
132
GFK-1503E
For public disclosure
10.1.9.1 Parameters of the Bit Set and Bit Clear Functions
Choices
When the function is enabled, the bit operation is
flow
performed.
I, Q, M, T, SA, SB, SC,
IN contains the first word of the data to be
G, R, AI, AQ
operated on.
BIT contains the bit number of IN that should be
I, Q, M, T, G, R, AI, AQ,
set or cleared.
constant
Valid range is (1 < BIT < (16 * length) ).
The OK output is energized whenever the bit
flow, none
input is valid and enable is energized.
10.1.9.2 Example
In the example, whenever input %I0001 is set, bit 12 of the string beginning at reference
%R0040 is set to 1.
%I0001
%R0040
CONST
00012
10.1.10 Bit Operation Functions Masked Compare
The Masked Compare function compares the contents of two separate bit strings. It
provides the ability to mask selected bits. Input string 1 might contain the states of
outputs such as solenoids or motor starters. Input string 2 might contain their input state
feedback, such as limit switches or contacts.
Enable
MASK_
COMP_
WORD
Input 1
Miscompare
I1 MC
Output
Input 2
I2
Q
Bit string mask
M
Bit number of last compare
BN
Bit number
BIT
When the function receives power flow, it begins comparing the bits in the first string
with the corresponding bits in the second string. Comparison continues until a
miscompare is found or until the end of the string is reached.
Description
BIT_
SET
WORD
IN Q
BIT
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents