FC_DigitalOutputs - General Information
Type: |
Function |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
This chapter provides information on:
oTask
Convert a value of the digital outputs.
The function FC_DigitalOutputs() takes the Boolean values transferred at the inputs i_xValue0...i_xValue7 and packs them into a USINT value. This USINT value is returned as return value of the function.
Input |
Data type |
Description |
---|---|---|
i_xValue0 |
BOOL |
First bit to be converted. |
i_xValue1 |
BOOL |
Second bit to be converted. |
i_xValue2 |
BOOL |
Third bit to be converted. |
i_xValue3 |
BOOL |
Fourth bit to be converted. |
i_xValue4 |
BOOL |
Fifth bit to be converted. |
i_xValue5 |
BOOL |
Sixth bit to be converted. |
i_xValue6 |
BOOL |
Seventh bit to be converted. |
i_xValue7 |
BOOL |
Eighth bit to be converted. |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> Status message q_etDiag <> GD.ET_Diag.Ok -> Diagnostic message |
Data type |
Description |
---|---|
USINT |
Result of the conversion. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The conversion was successful.