FC_PackByte - General Information
|
Type: |
Function |
|
Available as of: |
V1.0.3.0 |
|
Versions: |
Current version |
Pack 8 BOOL variables in one BYTE.
Returns one BYTE whose bits represent the BOOL input values. The bits are arranged increasing from low to high after the numbering of the input value.
|
Input |
Data type |
Description |
|---|---|---|
|
i_xB07 |
BOOL |
Most significant input bit |
|
i_xB06 |
BOOL |
Input bit |
|
i_xB05 |
BOOL |
Input bit |
|
i_xB04 |
BOOL |
Input bit |
|
i_xB03 |
BOOL |
Input bit |
|
i_xB02 |
BOOL |
Input bit |
|
i_xB01 |
BOOL |
Input bit |
|
i_xB00 |
BOOL |
Least significant input bit |
|
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 |
|
Data type |
Description |
|---|---|
|
BYTE |
A BYTE whose bits represent the BOOL input values. |
|
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
|---|---|---|---|
|
OK |
0 |
Ok |
|
Enumeration name: |
Ok |
|
Enumeration value: |
0 |
|
Description: |
Ok |
The BOOL variables have been packed successfully.