Library manual M238 system functions | 2 MB - BERGER - POSITEC
Library manual M238 system functions | 2 MB - BERGER - POSITEC
Library manual M238 system functions | 2 MB - BERGER - POSITEC
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
SetRTCDrift: Adjust the Real Time Clock Each Week<br />
<strong>M238</strong> System Functions<br />
Function Description<br />
This function adds or subtracts to the Real Time Clock a specified amount of<br />
seconds, each week, at the specified day of the week and time (hour:minute).<br />
NOTE: The SetRTCDrift function must be called at least once to update the<br />
parameters.<br />
Graphical Representation<br />
IL and ST Representation<br />
To see the general representation in IL or ST language, refer to the chapter Function<br />
and Function Block Representation (see page 71).<br />
I/O Variables Description<br />
The following table describes the input parameters:<br />
Inputs Type Comment<br />
RTCDrift SINT(-59..59) Correction in seconds (-59 ... +59)<br />
Day DAY_OF_WEEK<br />
(see page 66)<br />
Day of the week the day will be executed.<br />
Hour HOUR (see page 67) Hour of change.<br />
Minute MINUTE (see page 68) Minute of change.<br />
NOTE: If RTCDrift > 0, the execution of the change takes place at Hour:Minute:00<br />
seconds.<br />
If RTCDrift < 0, the execution of the change takes place at Hour:Minute:59 seconds.<br />
NOTE: If the values entered for RTCDrift, Day, Hour, Minute exceed the limit<br />
values, the controller Firmware will set all values to their maximum values.<br />
EIO0000000364 04/2012 49