UNPACK (FB)
FUNCTION_BLOCK UNPACK
Converts a byte into 8 bits
InOut:
Scope
|
Name
|
Type
|
Comment
|
Input
|
B
|
BYTE
|
Input value
|
Output
|
B0
|
BOOL
|
Output bit 0
|
B1
|
BOOL
|
Output bit 1
|
B2
|
BOOL
|
Output bit 2
|
B3
|
BOOL
|
Output bit 3
|
B4
|
BOOL
|
Output bit 4
|
B5
|
BOOL
|
Output bit 5
|
B6
|
BOOL
|
Output bit 6
|
B7
|
BOOL
|
Output bit 7
|