EasyManua.ls Logo

GE PACSystems RX7i

GE PACSystems RX7i
469 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4. Ladder Diagram (LD) Programming
GFK-2950C February 2018 67
4.2 Bit Operation Functions
The Bit Operation functions perform comparison, logical, and move operations on bit strings.
Function
Mnemonics
Description
Bit Position
BIT_POS_DWORD
BIT_POS_WORD
Bit Position. Locates a bit set to 1 in a bit string.
Bit Sequencer
BIT_SEQ
Bit Sequencer. Sequences a string of bit values, starting at ST.
Performs a bit sequence shift through an array of bits. The maximum
length allowed is 256 words.
Bit Set, Clear
BIT_SET_DWORD
BIT_SET_WORD
Bit Set. Sets a bit in a bit string to 1.
BIT_CLR_DWORD
BIT_CLR_WORD
Bit Clear. Clear a bit within a string by setting that bit to 0.
Bit Test
BIT_TEST_DWORD
BIT_TEST_WORD
Bit Test. Tests a bit within a bit string to determine whether that bit is
currently 1 or 0.
Logical AND
AND_DWORD
AND_WORD
Compares the bit strings IN1 and IN2 bit by bit. When a pair of
corresponding bits are both 1, places a 1 in the corresponding
location in output string Q; otherwise, places a 0 in the corresponding
location in Q.
Logical NOT
NOT_DWORD
NOT_WORD
Logical invert. Sets the state of each bit in output bit string Q to the
opposite state of the corresponding bit in bit string IN1.
Logical OR
OR_DWORD
OR_WORD
Compares the bit strings IN1 and IN2 bit by bit. When a pair of
corresponding bits are both 0, places a 0 in the corresponding
location in output string Q; otherwise, places a 1 in the corresponding
location in Q.
Logical XOR
XOR_DWORD
XOR_WORD
Compares the bit strings IN1 and IN2 bit by bit. When a pair of
corresponding bits are different, places a 1 in the corresponding
location in the output bit string Q; when a pair of corresponding bits
are the same, places a 0 in Q.
Masked
Compare
MASK_COMP_DWORD
MASK_COMP_WORD
Masked Compare. Compares the contents of two separate bit strings
with the ability to mask selected bits.
Rotate Bits
ROL_DWORD
ROL_WORD
Rotate Left. Rotates all the bits in a string a specified number of
places to the left.
ROR_DWORD
ROR_WORD
Rotate Right. Rotates all the bits in a string a specified number of
places to the right.
Shift Bits
SHIFTL_DWORD
SHIFTL_WORD
Shift Left. Shifts all the bits in a word or string of words to the left by a
specified number of places.
SHIFTR_DWORD
SHIFTR_WORD
Shift Right. Shifts all the bits in a word or string of words to the right
by a specified number of places.

Table of Contents

Other manuals for GE PACSystems RX7i

Related product manuals