The function gets the date from the PLC configuration. The time of the system time in s and the Timer 1 for the ms is determined. A direct verification of the time of day is possible in ms.
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an error message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Error message |
|
q_sMsg |
STRING[80] |
Event-triggered message which gives more detailed information on the diagnostic state. |
q_dateDate |
DATE |
The current date |
q_todTime |
TOD |
The current time |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
Ok |
0 |
Ok |
ControllerConditionInvalid |
ControllerInvalid |
6 |
The controller is invalid. |