Real time clock
This function block creates a real time clock and provides its time and date at the output CDT. As long as the input EN is TRUE the clock is running. If not, the clock is on hold, but still provides its last time stamp.
If the input DT is connected, the value provided at this input is taken as the starting point of the clock, as soon as the input EN changes from FALSE to TRUE.
If the input DT is not connected, the current system time will be taken as the starting point of the clock, as soon as the input EN changes from FALSE to TRUE.
The output Q displays the state of the input EN.
The parameter dialog can be used to define whether or not the current time and date will be shown in the symbol during run mode. The format of the display can be chosen, too.
|DT||I||DT||Preset date and time|
|CDT||O||DT||Actual date and time|
The color of the icon from the input EN indicates whether or not the clock is currently running.
Furthermore the function block can directly depict its actual time and date in two different formats: