PackBitsToWord (FUN)¶
FUNCTION PackBitsToWord : WORD
Function packs 16 Bits “xBit0” .. “xBit15” into a WORD.
Example:
PackBitsToWord(FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,TRUE,
FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,TRUE,FALSE) = 16#0102
- InOut:
- Scope - Name - Type - Comment - Return - PackBitsToWord- WORD- function returns the WORD defined by the BOOL inputs - Input - xBit15- BOOL- Bit 15 of the Word - xBit14- BOOL- Bit 14 of the Word - xBit13- BOOL- Bit 13 of the Word - xBit12- BOOL- Bit 12 of the Word - xBit11- BOOL- Bit 11 of the Word - xBit10- BOOL- Bit 10 of the Word - xBit9- BOOL- Bit 9 of the Word - xBit8- BOOL- Bit 8 of the Word - xBit7- BOOL- Bit 7 of the Word - xBit6- BOOL- Bit 6 of the Word - xBit5- BOOL- Bit 5 of the Word - xBit4- BOOL- Bit 4 of the Word - xBit3- BOOL- Bit 3 of the Word - xBit2- BOOL- Bit 2 of the Word - xBit1- BOOL- Bit 1 of the Word - xBit0- BOOL- Bit 0 of the Word 
