MC_ReadDigitalInput - General Information
Type: |
Function Block |
Available as of: |
1.0.5.0 |
Versions: |
current version |
A digital input is to be read out.
The Value parameter of the digital input applied at the Input input is returned.
Input |
Data type |
Description |
---|---|---|
Input |
SystemConfiguration.G_IN |
The digital input that is to be read out |
Enable |
BOOL |
TRUE: The value of the digital input is read out. |
Output |
Data type |
Description |
---|---|---|
Valid |
BOOL |
The function block has a valid output. |
Busy |
BOOL |
The function block is not finished and new outputs are still pending. |
Error |
BOOL |
Signalizes an error within the function block |
ErrorId |
DWORD |
Error identification |
Value |
BOOL |
Value of the selected input signal |
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 |
0 |
Ok |
|
OK |
2 |
The output values are valid. |
|
InputParameterInvalid |
35 |
Input is invalid. |
Enumeration name: |
InputInvalid |
Enumeration value: |
35 |
Description: |
Input is invalid. |
Issue |
Cause |
Solution |
---|---|---|
- |
No digital input has been applied at the input Input. |
A valid input must be transferred to the input Input. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The POU is waiting for jobs.
Enumeration name: |
Valid |
Enumeration value: |
2 |
Description: |
The output values are valid. |
The value of the digital input is output.