FC_UnpackByte - General Information
Type: |
Function |
Available as of: |
V1.0.3.0 |
Versions: |
Current version |
Break down BYTE into 8 BOOL values.
The function breaks down the BYTE from the input into its bit components and delivers these as BOOL values.
Input |
Data type |
Description |
---|---|---|
i_byInput |
BYTE |
The BYTE which is to be split up into its bits |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
|
q_xB07 |
BOOL |
Most significant bit of the BYTE |
q_xB06 |
BOOL |
Bit of the BYTE |
q_xB05 |
BOOL |
Bit of the BYTE |
q_xB04 |
BOOL |
Bit of the BYTE |
q_xB03 |
BOOL |
Bit of the BYTE |
q_xB02 |
BOOL |
Bit of the BYTE |
q_xB01 |
BOOL |
Bit of the BYTE |
q_xB00 |
BOOL |
Least significant bit of the BYTE |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The BOOL variables have been unpacked successfully.