UnpackByte (FB)¶
FUNCTION_BLOCK UnpackByte
Function block unpacks “byValue” and returns the 8 bits “xBit0” .. “xBit7”.
Prefix: “memuby”.
Example:
byInput = 16#01 = 2#00000001
->
xBit0 = TRUE
xBit1..xBit7 = FALSE
- InOut:
Scope
Name
Type
Comment
Input
byValueBYTEBYTE to analyse
Output
xBit0BOOLBit 0 of byValue
xBit1BOOLBit 1 of byValue
xBit2BOOLBit 2 of byValue
xBit3BOOLBit 3 of byValue
xBit4BOOLBit 4 of byValue
xBit5BOOLBit 5 of byValue
xBit6BOOLBit 6 of byValue
xBit7BOOLBit 7 of byValue