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 - PackBitsToByte- BYTE- functions returns the BYTE defined by the BOOL inputs - Input - xBit7- BOOL- Bit 7 of the Byte - xBit6- BOOL- Bit 6 of the Byte - xBit5- BOOL- Bit 5 of the Byte - xBit4- BOOL- Bit 4 of the Byte - xBit3- BOOL- Bit 3 of the Byte - xBit2- BOOL- Bit 2 of the Byte - xBit1- BOOL- Bit 1 of the Byte - xBit0- BOOL- Bit 0 of the Byte 
