5. CONFIGURATION
Input Parameters Type Description
TIMEZONE TIMEZONESETTINGS
This variable presents the reading
of Time Zone configuration.
Table 158: Input Parameters of GetTimeZone
Output Parameters Type Description
GetTimeZone RTC_STATUS
Returns the function error state, see
Table 167.
Table 159: Output Parameters of GetTimeZone
Utilization example in ST language:
PROGRAM UserPrg
VAR
GetTimeZone_Status : RTC_STATUS;
TimeZone : TIMEZONESETTINGS;
xEnable : BOOL;
END_VAR
--------------------------------------------------------------------------
IF xEnable = TRUE THEN
GetTimeZone_Status := GetTimeZone(TimeZone);
xEnable := FALSE;
END_IF
5.8.1.1.3. GetDayOfWeek
GetDayOfWeek function is used to read the day of the week.
Figure 130: Day of Week Reading
Output Parameters Type Description
GetDayOfWeek DAYS_OF_WEEK
Returns the day of the week. See
Section 166.
Table 160: Output Parameters of GetDayOfWeek
When called, the function will read the day of the week and fill the structure DAYS_OF_WEEK.
Utilization example in ST language:
219