MC_WriteDigitalOutput - General Information
|
Type: |
Function Block |
|
Available as of: |
1.0.5.0 |
|
Versions: |
current version |
A digital output is to be written.
The parameter Value of the digital output applied at the Output input is written.
|
Input |
Data type |
Description |
|---|---|---|
|
Output |
SystemConfiguration.GD_OUT |
The digital output that is to be read out |
|
Execute |
BOOL |
TRUE: The value of the digital output is written. |
|
Value |
BOOL |
The value with which the output is to be written |
|
Output |
Data type |
Description |
|---|---|---|
|
Done |
BOOL |
Writing the value of the output signal has been completed. |
|
Busy |
BOOL |
The function block is not finished and new outputs are still pending. |
|
Error |
BOOL |
Signalizes a detected error within the function block |
|
ErrorId |
DWORD |
Error identification |
|
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 |
|
|
q_sMsg |
STRING[80] |
Event-triggered message which gives more detailed information on the diagnostic state. |
|
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
|---|---|---|---|
|
OK |
1 |
The order is executed. |
|
|
OK |
8 |
The order is completed. |
|
|
OK |
0 |
Ok |
|
|
InputParameterInvalid |
36 |
Output is not valid. |
|
Enumeration name: |
Busy |
|
Enumeration value: |
1 |
|
Description: |
The order is executed. |
The digital output is written.
|
Enumeration name: |
Done |
|
Enumeration value: |
8 |
|
Description: |
The order is completed. |
The digital output was written.
|
Enumeration name: |
Ok |
|
Enumeration value: |
0 |
|
Description: |
Ok |
The POU is waiting for jobs.
|
Enumeration name: |
OutputInvalid |
|
Enumeration value: |
36 |
|
Description: |
Output is not valid. |
|
Issue |
Cause |
Solution |
|---|---|---|
|
- |
No digital output has been applied at the input Output. |
A valid digital output must be transferred to the input Output. |