DCC_SvcAppHook (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL DCC_SvcAppHook EXTENDS BACnet.BACnetServerPluginBase IMPLEMENTS BACnet.IBACnetEventConsumer Default implementation for DeviceCommunicationControl service application hook Needs to be called cyclically to ensure DCC restauration after timed DCC request. Properties: Name NumHooks Password Methods: BACnetEventCallback GetHook Init Structure: BACnetEventCallback (Method) GetHook (Method) Init (Method) Name (Property) NumHooks (Property) Password (Property)
DCC_SvcAppHook.BACnetEventCallback (METH) ¶ METHOD BACnetEventCallback : BOOL Hook callback for IEC_BACNET_CB_TYPE.CB_DCC 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)
DCC_SvcAppHook.GetHook (METH) ¶ METHOD GetHook : BACnet.IBACnetServerPluginHook InOut: Scope Name Type Return GetHook BACnet.IBACnetServerPluginHook Input index UINT
DCC_SvcAppHook.Init (METH) ¶ METHOD Init
DCC_SvcAppHook.Name (PROP) ¶ PROPERTY Name : STRING
DCC_SvcAppHook.NumHooks (PROP) ¶ PROPERTY NumHooks : UINT
DCC_SvcAppHook.Password (PROP) ¶ PROPERTY Password : WSTRING
DevelopmentSupport ¶ Function blocks for application development support and debugging are collected in this folder.
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)