PackBitsToByte (FUN)¶
FUNCTION PackBitsToByte : BYTE
Function packs 8 Bits “xBit0” .. “xBit7” into a BYTE.
Example:
PackBitsToByte(FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,TRUE) = 16#01
- InOut:
Scope
Name
Type
Comment
Return
PackBitsToByteBYTEfunctions returns the BYTE defined by the BOOL inputs
Input
xBit7BOOLBit 7 of the Byte
xBit6BOOLBit 6 of the Byte
xBit5BOOLBit 5 of the Byte
xBit4BOOLBit 4 of the Byte
xBit3BOOLBit 3 of the Byte
xBit2BOOLBit 2 of the Byte
xBit1BOOLBit 1 of the Byte
xBit0BOOLBit 0 of the Byte