TODSplit (FUN) ¶ FUNCTION TODSplit : ERROR The function block provides hour, minute and second from the IEC 6-1131-3 format TIME_OF_DAY . InOut: Scope Name Type Comment Return TODSplit ERROR Input todTime TOD puiHour POINTER TO UINT 0..23 puiMinute POINTER TO UINT 0..59 puiSecond POINTER TO UINT 0..59 puiMillisecond POINTER TO UINT 0..999
Global Constants ¶ The global constant DTU_gc_tziTimeZoneCET defines the time zone as well as the switch between summer and standard time of the Central European EU countries. The switch is done according to the following rules: The switch to summer time (CEST) takes place on the last Sunday of March. The clock is set ahead by one hour at 2:00 a.m.. The switch to standard time (CET) takes place on the last Sunday of October. The clock is set back by one hour at 3:00 a.m.. GlobalConstants (GVL)
GlobalConstants (GVL) ¶ The global constant DTU_gc_tziTimeZoneCET defines the time zone as well as the switch between summer and standard time of the Central European EU countries. The switch is done according to the following rules: The switch to summer time (CEST) takes place on the last Sunday of March. The clock is set ahead by one hour at 2:00 a.m.. The switch to standard time (CET) takes place on the last Sunday of October. The clock is set back by one hour at 3:00 a.m.. gc_tziTimeZoneCET : RTCLK.TIME_ZONE_INFO := ( iBias := 60 , sPeriode := [( (* Standard *) sName:='CET', tmDate := (uiMonth := 10, eWeekday := RTCLK.WEEKDAY.SUNDAY, uiDay := 5, uiHour := 3, uiMinute := 0, uiSecond := 0), iBias := 0 ),( (* Daylight *) sName := 'CEST', tmDate := (uiMonth := 3, eWeekday := RTCLK.WEEKDAY.SUNDAY, uiDay := 5, uiHour := 2, uiMinute := 0, uiSecond := 0), iBias := 60 )] ); InOut: Scope Name Type Initial Constant gc_tziTimeZoneCET RTCLK.TIME_ZONE_INFO STRUCT(iBias := 60, sPeriode := [STRUCT(sName := ‘CET’, tmDate := STRUCT(uiMonth := 10, eWeekday := RTCLK.WEEKDAY.SUNDAY, uiDay := 5, uiHour := 3, uiMinute := 0, uiSecond := 0), iBias := 0), STRUCT(sName := ‘CEST’, tmDate := STRUCT(uiMonth := 3, eWeekday := RTCLK.WEEKDAY.SUNDAY, uiDay := 5, uiHour := 2, uiMinute := 0, uiSecond := 0), iBias := 60)])
Structs ¶ DTU_GETDATEANDTIME_PARAMS (Struct) DTU_GETTIMEZONEINFORMATION_PARAMS (Struct) DTU_SETDATEANDTIME_PARAMS (Struct) DTU_SETTIMEZONEINFORMATION_PARAMS (Struct)
DTU_GETDATEANDTIME_PARAMS (STRUCT) ¶ TYPE DTU_GETDATEANDTIME_PARAMS : STRUCT InOut: Name Type dtDateAndTime DT eTimezone RTCLK.PERIODE
Persistence ¶ ActivatePersistence (Method) DeactivatePersistence (Method)
DTU_GETTIMEZONEINFORMATION_PARAMS (STRUCT) ¶ TYPE DTU_GETTIMEZONEINFORMATION_PARAMS : STRUCT InOut: Name Type tziTimezone RTCLK.TIME_ZONE_INFO
DTU_SETDATEANDTIME_PARAMS (STRUCT) ¶ TYPE DTU_SETDATEANDTIME_PARAMS : STRUCT InOut: Name Type dtDateAndTime DT
DTU_SETTIMEZONEINFORMATION_PARAMS (STRUCT) ¶ TYPE DTU_SETTIMEZONEINFORMATION_PARAMS : STRUCT InOut: Name Type tziTimezone RTCLK.TIME_ZONE_INFO
GetSupplierVersion (FUN) ¶ FUNCTION GetSupplierVersion : WORD InOut: Scope Name Type Return GetSupplierVersion WORD Input xDummy BOOL