FUNCTION_BLOCK BYTE_AS_BIT
Converts an input value of data type byte into 8 outputs of data type BOOL
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 |