Herunterladen Inhalt Inhalt Diese Seite drucken

Panasonic FPE Sigma Benutzerhandbuch Seite 57

Inhaltsverzeichnis

Werbung

CPU-Typen
ST-Rumpf
if
(DF(bStartCompensation))
(* Read the current time from the RTC *)
dtbcdCurrent.MinSec:=sys_wClockCalendarMinSec;
dtbcdCurrent.DayHour:=sys_wClockCalendarDayHour;
dtbcdCurrent.YearMonth:=sys_wClockCalendarYearMonth;
(* Decide whether to round up (seconds>=30) *)
if
current time *)
16#100,
dtbcdCurrent);
end_if;
(* Set the seconds to zero *)
dtbcdCurrent.MinSec:=dtbcdCurrent.MinSec
(* Write the current time into the RTC and set the RTC
using 'sys_wClockCalendarSet' *)
sys_wClockCalendarMinSec:=dtbcdCurrent.MinSec;
sys_wClockCalendarDayHour:=dtbcdCurrent.DayHour;
sys_wClockCalendarYearMonth:=dtbcdCurrent.YearMonth;
sys_wClockCalendarSet:=16#8000;
end_if;
40
((dtbcdCurrent.MinSec
(* To round up 1 minute (16#100) is added to the
F157_ADD_DTBCD_TIMEBCD(s1_DTBCD
then
AND
16#00FF)>30)
FPΣ Benutzerhandbuch
then
:= dtbcdCurrent,
s2_TIMEBCD
:=
d_DTBCD
=>
AND
16#FF00;

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis