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 01000001)0TRUE
32(00000000 00100000) 5 TRUE
12612(00110001 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 01000011)
32(00000000 00100000) TRUE 6 96(00000000 01100000)
12612(00110001 01000100) FALSE 12 8516(00100001 01000100)