DeviceDateTime (FB) ¶ FUNCTION_BLOCK DeviceDateTime EXTENDS BACnet.BACnetServerPluginBase IMPLEMENTS CmpEventMgr.ICmpEventCallback Default implementation to provide proper device date / time information. Needs to be called cyclically to ensure datetime calculation. In case the application wants to use a different timeline than the PLC OS, you need to register a time provider for the BACstack. Properties: Name TimeZone UpdateTimeZoneFromSystem Methods: GetTimeZoneFromSystem RegisterTimeProvider UnregisterTimeProvider Structure: GetTimeZoneFromSystem (Method) Name (Property) RegisterTimeProvider (Method) TimeZone (Property) UnregisterTimeProvider (Method) UpdateTimeZoneFromSystem (Property)
UTCTimeSync_SvcAppHook.BACnetEventCallback (METH) ¶ METHOD BACnetEventCallback : BOOL Hook callback for IEC_BACNET_CB_TYPE.CB_UTC_TIME_SYNC InOut: Scope Name Type Comment Return BACnetEventCallback BOOL Input EventId DWORD If only one event is possibly called, the following Ids can be ignored. If there are more at least the EventId should be checked, to get the right type of pParameter. ID of the occured Event. Contains the class and the event (see CmpBACnet.EVENTIDS) usParamId WORD Id of the parameter structure (see pParameter and CmpBACnet.EVENTIDS) usVersion WORD Version of the parameter structure (see pParameter and CmpBACnet.EVENTIDS) pParameter POINTER TO BYTE Pointer to the event specific parameter, that is specified by Id (see CmpBACnet.EVENTIDS and CmpBACnet, i.e. EVT_BACNET_ACKALARM)
UTCTimeSync_SvcAppHook.GetHook (METH) ¶ METHOD GetHook : BACnet.IBACnetServerPluginHook InOut: Scope Name Type Return GetHook BACnet.IBACnetServerPluginHook Input index UINT
UTCTimeSync_SvcAppHook.Init (METH) ¶ METHOD Init
UTCTimeSync_SvcAppHook.Name (PROP) ¶ PROPERTY Name : STRING
UTCTimeSync_SvcAppHook.NumHooks (PROP) ¶ PROPERTY NumHooks : UINT
Functions ¶ DATETIME_TO_RTS_SYSTIMEDATE (Function) DateTimeToString (Function) DateTimeToTimestamp (Function) Directory (FunctionBlock) Close (Method) GetDir (Method) Read (Method) SetDir (Method) ls_log (Method) GetLocalTime (Function) GetSystemTimeZone (Function) PersistenceWriteProperty (Function) PropAddrString (Function) PropertyContentToString (Function) RTS_SYSTIMEDATE_TO_STRING (Function) SysTimeDateToString (Function) Time2BACnetDateTime (Function) Time2BACnetTimeStamp (Function) TimeZoneSegmentToString (Function) TimeZoneToString (Function) TimezoneInformationToString (Function) UtilDateTimeToString (Function)
DATETIME_TO_RTS_SYSTIMEDATE (FUN) ¶ FUNCTION DATETIME_TO_RTS_SYSTIMEDATE : ERROR Converts timestamp in milliseconds since 1.1.1970 00:00:00.000 to SYSTIMEDATE InOut: Scope Name Type Comment Return DATETIME_TO_RTS_SYSTIMEDATE ERROR Input uliDateTime ULINT timestamp in milliseconds since 1.1.1970 00:00:00.000 Inout std SYSTIMEDATE
DateTimeToString (FUN) ¶ FUNCTION DateTimeToString : STRING(255) InOut: Scope Name Type Comment Return DateTimeToString STRING(255) Input uliDateTime ULINT timestamp in milliseconds since 1.1.1970 00:00:00.000
DateTimeToTimestamp (FUN) ¶ FUNCTION DateTimeToTimestamp : ULINT Converts a Util.DateTime into a timestamp in milliseconds since 1.1.1970 00:00:00.000. InOut: Scope Name Type Initial Return DateTimeToTimestamp ULINT Input dtm Util.DateTime Output eErrorID ERROR ERROR.NO_ERROR