RTC block
Short summary
Name |
|
→POU type |
|
Category |
|
Conform to →IEC-standard |
not defined in IEC-standard |
Graphical interface |
|
Available since |
version 1.20.0 (for Neuron Power Engineer) |
Functionality
This is a real-time clock.
Enter a date and time at input PT
. If input IN
is →turned on, output CDT
returns the current date and time (starting with the date and time entered at input PT
). If input IN
is →turned off, the real-time clock stops, i.e. output CDT
returns the last date and time. Output Q
always returns the same value as the input IN
.
This block receives the current system time from the runtime system. This time remains constant while the same task is executed. However, in case of different tasks, it is possible that a different system time is used when the belonging programs are executed (even if the different tasks have the same cycle time). |
In-/outputs
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
input/start |
|
|
preset date and time |
|
Outputs: |
|
|
output |
|
|
current date and time |
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Example for usage within ST-editor
|
If the cycle time is 500 ms, the variables are set to the following date and time for the first 4 cycles:
Cycle |
|
|
---|---|---|
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.