ObjectPersistence.DeleteAllData (METH) ¶ METHOD DeleteAllData : CmpBACnet.IEC_BACNET_STATUS This function deletes all the previously created data files. InOut: Scope Name Type Return DeleteAllData CmpBACnet.IEC_BACNET_STATUS
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)
DeviceDateTime.GetTimeZoneFromSystem (METH) ¶ METHOD GetTimeZoneFromSystem : ERROR Gets the timezone from the underlying system. InOut: Scope Name Type Return GetTimeZoneFromSystem ERROR
DeviceDateTime.Name (PROP) ¶ PROPERTY Name : STRING
DeviceDateTime.RegisterTimeProvider (METH) ¶ METHOD RegisterTimeProvider : UDINT InOut: Scope Name Type Return RegisterTimeProvider UDINT
DeviceDateTime.TimeZone (PROP) ¶ PROPERTY TimeZone : Util.TimeZone Read / write the timezone. See also GetTimeZoneFromSystem and UpdateTimeZoneFromSystem .
DeviceDateTime.UnregisterTimeProvider (METH) ¶ METHOD UnregisterTimeProvider : UDINT InOut: Scope Name Type Return UnregisterTimeProvider UDINT
DeviceDateTime.UpdateTimeZoneFromSystem (PROP) ¶ PROPERTY UpdateTimeZoneFromSystem : BOOL Determines whether or not the timezone is updated from the underlying system before each computation involving timezone.
LimitDeviceObjectPropertyReferencesToCertainTypes (FB) ¶ FUNCTION_BLOCK LimitDeviceObjectPropertyReferencesToCertainTypes EXTENDS BACnet.BACnetServerPluginBase IMPLEMENTS BACnet.IBACnetEventConsumer Default implementation to limit properties of type CmpBACnet.IEC_BACNET_DATA_TYPE.DATA_TYPE_DEV_OBJ_PROP_REFERENCE to refer to properties of selected value types (BOOLEAN, UNSIGNED, SIGNED, REAL, ENUMERATED, BIT_STRING) only. This default implementation registers a write callback and rejects property write requests with inappropriate value types. BACnetServer.RWPropCBComplete needs to be 0 to ensure the write callback gets called prior modification (not after - RWPropCBComplete = 1). In case BACnetServer.RWPropCBComplete = 1 this default implementation rejects to register itself. LimitDeviceObjectPropertyReferencesToCertainTypes also checks client created objects for the same rules. This requires to be informed about client create object requests processed already, so LimitDeviceObjectPropertyReferencesToCertainTypes registers a (client) create object service application hook to watch client create object requests processed already from another BACnetServer-plugin (eventually). To ensure this technique can work you have to register LimitDeviceObjectPropertyReferencesToCertainTypes after the BACnetServer-plugin taking care for client create object requests (lets call it the “object producer” - see ClientCreatableObjects) and to ensure LimitDeviceObjectPropertyReferencesToCertainTypes.BACnetEventCallback gets called (see ClientCreatableObjects.BlockFurtherProcessing:=FALSE) because the the “object producer” doesn’t block processing further down the line (eventually setting it’s return value of BACnetEventCallback to TRUE). Actual limitation: works for Trend_Log object, not for Trend_Log_Multiple yet, because Trend_Log_Multiple.Log_DeviceObjectProperty is BACnetARRAY[N] of BACnetDeviceObjectPropertyReference. Properties: Name NumCallbacks NumHooks Methods: BACnetEventCallback GetCallback GetHook Init PostStartBACnetStack PreRegister Structure: BACnetEventCallback (Method) GetCallback (Method) GetHook (Method) Init (Method) Name (Property) NumCallbacks (Property) NumHooks (Property) PostStartBACnetStack (Method) PreRegister (Method)