Function Blocks ¶ ApplicationSoftwareVersion (FunctionBlock) Name (Property) PostStartBACnetStack (Method) AutomaticTimeSync (FunctionBlock) GetTimeZoneFromSystem (Method) Name (Property) TimeZone (Property) Timeout (Property) UpdateTimeZoneFromSystem (Property) BackupRestore (FunctionBlock) BACnetEventCallback (Method) BackupFailTime (Property) BackupFilePath (Property) DumpDataBase (Method) GetHook (Method) GetTimeZoneFromSystem (Method) Init (Method) Name (Property) NumHooks (Property) Password (Property) PostUnregister (Method) PreRegister (Method) Restore (Method) RestoreClientCreatedObjects (Property) TimeZone (Property) UpdateTimeZoneFromSystem (Property) ClientCreatableObjects (FunctionBlock) BACnetEventCallback (Method) BlockFurtherProcessing (Property) GetHook (Method) Init (Method) Name (Property) NumHooks (Property) PreRegister (Method) SetMaxNum (Method) DCC_SvcAppHook (FunctionBlock) BACnetEventCallback (Method) GetHook (Method) Init (Method) Name (Property) NumHooks (Property) Password (Property) DevelopmentSupport DeviceDateTime (FunctionBlock) GetTimeZoneFromSystem (Method) Name (Property) RegisterTimeProvider (Method) TimeZone (Property) UnregisterTimeProvider (Method) UpdateTimeZoneFromSystem (Property) LimitDeviceObjectPropertyReferencesToCertainTypes (FunctionBlock) BACnetEventCallback (Method) GetCallback (Method) GetHook (Method) Init (Method) Name (Property) NumCallbacks (Property) NumHooks (Property) PostStartBACnetStack (Method) PreRegister (Method) LoggingObjects Internal LogObjectBaseFileHandleTableEntry (Struct) LogObjectsBase (FunctionBlock) BACnetEventCallback ReadRangeErrorCompletion (Method) Files DataFiles CreateDataFiles (Method) DataFileName (Method) ListDataFiles (Method) PurgeDataFile (Method) ReadNumberOfRecordsAndLastSequenceFromDataFile (Method) ReadNumberOfRecordsFromDataFile (Method) RemoveDataFiles (Method) RemoveUnusedDataFiles (Method) ResetDataFile (Method) WriteRecordContentToDataFile (Method) base ComputeRecordSize (Method) FreeReadRangeResult (Method) GetBufferSize (Method) GetRecordsByPosition (Method) GetRecordsBySequence (Method) GetRecordsByTime (Method) GetStopWhenFull (Method) HardShutdown (Property) Init (Method) Logging LogDataFile (Method) LogFilePos (Method) LogFileSize (Method) LogFileSizeAndPos (Method) LogObjectAddrString (Method) LogObjectPropertyAddrString (Method) LogReadRangeResult (Method) LogRecord (Method) LogRecordContentInfo (Method) MaxDataSize (Property) ObjectHandling ObjectId (Method) ObjectType (Property) PersistentPath (Property) PostStopBACnetStack (Method) ReadRangeResultSetInfo (Method) ScanObjectsAndSetCallbackAttachments (Method) ServerDeviceId (Property) SetCallbackAttachments (Method) SetReadCallbackAttachment (Method) SetWriteCallbackAttachment (Method) TempPath (Property) ToString ReadRangeInfoToString (Method) UpdateObjectPropertiesFromDataFile (Method) TrendLog (FunctionBlock) BACnetEventCallback (Method) GetCallback (Method) GetHook (Method) Init (Method) Name (Property) NumCallbacks (Property) NumHooks (Property) PostStartBACnetStack (Method) PreRegister (Method) private SetCallbackAttachments (Method) UpdateObjectPropertiesFromDataFile (Method) proxy GetBufferSize (Method) GetLogDeviceObjectProperty (Method) GetStopWhenFull (Method) ObjectPersistence (FunctionBlock) DeleteAllData (Method) DumpDataBase (Method) HardShutdown (Property) LogIndexFileContent (Method) Name (Property) PersistentPath (Property) PostUnregister (Method) PreRegister (Method) RestoreClientCreatedObjects (Property) PropertyConfiguration (Folder) DoGetPropertyAttributes (Method) GetPropertyAttributes (Method) Logging LogError (Method) LogException (Method) LogInfo (Method) LogWarning (Method) Logging (Property) Name (Property) PropertyConfigurationMostlyAllPersistent (FunctionBlock) GetPropertyAttributes (Method) Name (Property) PropertyConfigurationMostlyAllWritable (FunctionBlock) GetPropertyAttributes (Method) Name (Property) ReinitDevice_SvcAppHook (FunctionBlock) BACnetEventCallback (Method) GetHook (Method) GetTimeZoneFromSystem (Method) Init (Method) Name (Property) NumHooks (Property) Password (Property) TimeZone (Property) UpdateTimeZoneFromSystem (Property) TimeSync_SvcAppHook (FunctionBlock) BACnetEventCallback (Method) GetHook (Method) GetTimeZoneFromSystem (Method) Init (Method) Name (Property) NumHooks (Property) TimeZone (Property) UpdateTimeZoneFromSystem (Property) UTCTimeSync_SvcAppHook (FunctionBlock) BACnetEventCallback (Method) GetHook (Method) Init (Method) Name (Property) NumHooks (Property)
ApplicationSoftwareVersion (FB) ¶ FUNCTION_BLOCK ApplicationSoftwareVersion EXTENDS BACnet.BACnetServerPluginBase Set Device.Application_Software_Version at BACnetServer.StartBACnetStack to ensure proper property value even if BACnetServer device description was updated (which changes the default but keeps the value) and/or the property was configured persistent. Set also Device.Protocol_Revision and Device.Protocol_Version. Properties: Name Methods: PostStartBACnetStack Structure: Name (Property) PostStartBACnetStack (Method)
ApplicationSoftwareVersion.Name (PROP) ¶ PROPERTY Name : STRING
ApplicationSoftwareVersion.PostStartBACnetStack (METH) ¶ METHOD PostStartBACnetStack : UDINT InOut: Scope Name Type Return PostStartBACnetStack UDINT
BACnetSchedule.AddWeeklyEntry (METH) ¶ METHOD AddWeeklyEntry : CmpBACnet.IEC_BACNET_STATUS Adds a weekly entry to the Weekly_Schedule-Property of this BACnet-Object For now dont use this to add weekly entries with complex type, otherwise GetWeeklyEntry will refuse to get those entries. Please see comment on GetWeeklyEntry related to complex data types. InOut: Scope Name Type Comment Return AddWeeklyEntry CmpBACnet.IEC_BACNET_STATUS Input tim TIME The time of the weekly entry to add. value CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS The value corresponding to the entry. dayOfWeek CmpBACnet.IEC_BACNET_DAY_OF_WEEK The day of the week of the weekly entry to add.
BACnetSchedule.GetWeeklyEntry (METH) ¶ METHOD GetWeeklyEntry : CmpBACnet.IEC_BACNET_STATUS Gets the weekly entry for a specific day dayOfWeek at the index nIndex in the Weekly_Schedule-Property of this BACnet-Object. There are two options how to deal with the content buffer (value). 1.) the caller provides the content buffer large enough to hold the content. This works just for plain content data, because otherwise the caller can not determine the needed size of the content buffer a-priori. In case the content is of complex data type, GetWeeklyEntry returns BACNET_STATUS_INVALID_VALUE. 2.) stack allocated content buffer For this option provide value.buffer.pBuffer = 0 and free the stack allocated content buffer after usage FreeStackAllocatedMemory(value.buffer.pBuffer) Choosing one of the options, please be aware, that the Weekly_Schedule-Property of your Schedule object might be writable, so clients can add weekly entries of complex type even if your application isn’t doing so. InOut: Scope Name Type Comment Return GetWeeklyEntry CmpBACnet.IEC_BACNET_STATUS Input dayOfWeek CmpBACnet.IEC_BACNET_DAY_OF_WEEK The day of the week for which to get a weekly entry. nIndex CmpBACnet.IEC_BACNET_ELEMENT_COUNT The 1 based index of the entry of the week day to get. Output tim TIME The time of the entry after calling the method. Inout value CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS The value of the entry after calling this method. The value.buffer.pBuffer has to have an allocated memory, which fits the data’s needs (is at least allocated big enough!)!
BACnetSchedule.AddExceptionWeekAndDay (METH) ¶ METHOD AddExceptionWeekAndDay : CmpBACnet.IEC_BACNET_STATUS Adds a week and day entry (i.e. weekly at day) to the Exception_Schedule-Property of this BACnet-Object. InOut: Scope Name Type Comment Return AddExceptionWeekAndDay CmpBACnet.IEC_BACNET_STATUS Input month CmpBACnet.IEC_BACNET_MONTH The month of the exception date. weekOfMonth CmpBACnet.IEC_BACNET_WEEK_OF_MONTH The week of the month of the exception date. dayOfWeek CmpBACnet.IEC_BACNET_DAY_OF_WEEK The day of the week of the exception date. pEntries POINTER TO CmpBACnet.IEC_BACNET_TIME_VALUE The times and values during the week and day dates which correspond to the exception date. entryCount CmpBACnet.IEC_BACNET_ELEMENT_COUNT The number of times and values for the exceptions. eventPriority BYTE The priority with which the values are written.
BACnetSchedule.GetExceptionEntry (METH) ¶ METHOD GetExceptionEntry : CmpBACnet.IEC_BACNET_STATUS Gets a entry with index nIndex of the Exception_Schedule-Property of this BACnet-Object. The returned data (pSpecialEvt) is allocated by the stack and therefore has to be freed after usage using FreeStackAllocatedMemory again! InOut: Scope Name Type Comment Return GetExceptionEntry CmpBACnet.IEC_BACNET_STATUS Input nIndex CmpBACnet.IEC_BACNET_ELEMENT_COUNT The 1 based index of the exception entry to get. Output pSpecialEvt POINTER TO CmpBACnet.IEC_BACNET_SPECIAL_EVENT The returned Pointer gets filled with the data of IEC_BACNET_EVENT_PARAMETER AND (!) the data referenced within evtParams. After usage, use FreeStackAllocatedMemory , to free the used memory again.
BACnetSchedule.AddPropertyReference (METH) ¶ METHOD AddPropertyReference : CmpBACnet.IEC_BACNET_STATUS Adds device object property reference to the List_Of-Object_Property_References-Property (which lists all the Objects to influenced by this Schedule) of this BACnet-Object. InOut: Scope Name Type Initial Comment Return AddPropertyReference CmpBACnet.IEC_BACNET_STATUS Input deviceInstance CmpBACnet.IEC_BACNET_DWORD The BACnet device to reference. objInstance CmpBACnet.IEC_BACNET_DWORD The BACnet object instance number of the BACnet device to reference. objType CmpBACnet.IEC_BACNET_OBJECT_TYPE The BACnet object type number of the BACnet device to reference. propID CmpBACnet.IEC_BACNET_PROPERTY_ID The BACnet property ID of the BACnet object to reference. nIndex CmpBACnet.IEC_BACNET_SIGNED The 1 based index to reference of the BACnet property. xDevicePresent BOOL TRUE Whether the BACnet device is present or not.
BACnetSchedule.GetPropertyReference (METH) ¶ METHOD GetPropertyReference : CmpBACnet.IEC_BACNET_STATUS Gets the device object property reference at index nIndex in the List_Of-Object_Property_References-Property of this BACnet-Object. InOut: Scope Name Type Comment Return GetPropertyReference CmpBACnet.IEC_BACNET_STATUS Input nIndex CmpBACnet.IEC_BACNET_ELEMENT_COUNT The 1 based index of the reference to get. Output devObjPropRef CmpBACnet.IEC_BACNET_DEV_OBJ_PROP_REFERENCE The object property reference gotten after a call to this method.