Chapter 9—C445 Logic Engine and Expansion I/O
Power Xpert C445 Global Motor Management Relay
MN042003EN—January 2019
www.eaton.com
189
BITGET—Extract Bit
The BITGET function block extracts the bit at the bit position specified by BITSEL from the
16-bit value at IN.
Examples
BITSET—Set Bit
The BITSET function block can set or clear a bit specified by VALUE at the bit position specified
by BITSEL of the 16-bit value IN and makes the modified 16-bit value available at the OUT. The
bit modification happens only if the SET is set to TRUE else IN is just copied to the OUT.
Examples
Parameter
Data type
Description
BITSEL
INT
Bit position (0–15) to extract
IN
UINT
16-bit input
OUT
BOOL
Extracted bit
IN
BITSEL
OUT
65(00000000 0100000
1
)
0
TRUE
32(00000000 00
1
00000)
5
TRUE
12612(001100
0
1 01000100)
9
FALSE
Parameter
Data type
Description
SET
BOOL
Perform bit setting
BITSEL
INT
Bit position (0–15) to set
VALUE
BOOL
Set/Clear the bit
IN
UINT
16-bit input
OUT
UINT
Bit modified IN
IN
VALUE
BITSEL
OUT
65(00000000 01000001)
TRUE
2
67(00000000 010000
1
1)
32(00000000 00100000)
TRUE
6
96(00000000 0
1
100000)
12612(00110001 01000100)
FALSE
12
8516(001
0
0001 01000100)