GetSignedFromContents (FUN) ¶ FUNCTION GetSignedFromContents : DINT Tries to evaluate property contents as DINT data type. If the contents are not of type DINT 0 is returned. InOut: Scope Name Type Comment Return GetSignedFromContents DINT Input conts CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS The contents to be evaluated as DINT.
GetTimeFromContents (FUN) ¶ FUNCTION GetTimeFromContents : TIME Tries to evaluate property contents as TIME data type. If the contents are not of type TIME 0 is returned. InOut: Scope Name Type Comment Return GetTimeFromContents TIME Input conts CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS The contents to be evaluated as TIME.
FromBACnetBoolean (FUN) ¶ FUNCTION FromBACnetBoolean : BOOL Returns a BOOL corresponding to the given IEC_BACNET_BOOLEAN. InOut: Scope Name Type Comment Return FromBACnetBoolean BOOL Input bacBol CmpBACnet.IEC_BACNET_BOOLEAN The BACnet boolean to convert to a BOOL.
FromBACnetDate (FUN) ¶ FUNCTION FromBACnetDate : DATE Returns a DATE corresponding to the given IEC_BACNET_DATE. InOut: Scope Name Type Comment Return FromBACnetDate DATE Input bacDat CmpBACnet.IEC_BACNET_DATE The BACnet date to convert to a DATE.
InitializeBACnetSetpointReference (FUN) ¶ FUNCTION InitializeBACnetSetpointReference : BOOL Initializes a IEC_BACNET_SETPOINT_REFERENCE according to a given BACnetSetpointReference struct. InOut: Scope Name Type Comment Return InitializeBACnetSetpointReference BOOL Input setpointRef BACnetSetpointReference The BACnetSetpointReference to use for initialization. Inout bacSetpointRef CmpBACnet.IEC_BACNET_SETPOINT_REFERENCE The BACnet set point reference to operate on.
InitializeBACnetString (FUN) ¶ FUNCTION InitializeBACnetString : BOOL Initializes a IEC_BACNET_STRING according to a given WSTRING. Only UTF-8 and ISO 8859-1 BACnet-String supported right now. InOut: Scope Name Type Comment Return InitializeBACnetString BOOL Input strUTF16 WSTRING(255) The utf16 WSTRING (standard format for CODESYS WSTRINGs in visus, etc.) to use for initialization. strType CmpBACnet.IEC_BACNET_STRING_TYPE The string type to initialize the BACnet string with. Inout strBuffer STRING(255) A buffer used during initialization in the end being used for the initialized string data. bacString CmpBACnet.IEC_BACNET_STRING The BACnet string to operate on.
IsBACnetDateTimeUnspecified (FUN) ¶ FUNCTION IsBACnetDateTimeUnspecified : BOOL Check if a IEC_BACNET_DATE_TIME is set to unspecified. InOut: Scope Name Type Return IsBACnetDateTimeUnspecified BOOL Input bacDateTime CmpBACnet.IEC_BACNET_DATE_TIME
InitializeBACnetDataTypes ¶ Utilities for initializing BACnet data types using IEC data types. BitStrings BACnetBitStringGetBit (Function) BACnetBitStringSetBit (Function) InitializeBACnetBitString (Function) InitializeBACnetBoolean (Function) InitializeBACnetDate (Function) InitializeBACnetDateRange (Function) InitializeBACnetDateTime (Function) InitializeBACnetDateTimeUnspecified (Function) InitializeBACnetDevObjPropReference (Function) InitializeBACnetSetpointReference (Function) InitializeBACnetString (Function) InitializeBACnetTime (Function) InitializeBACnetTimeStamp (Function)
InitializeBACnetDateTimeUnspecified (FUN) ¶ FUNCTION InitializeBACnetDateTimeUnspecified Initializes a IEC_BACNET_DATE_TIME unspecified InOut: Scope Name Type Comment Inout bacDateTime CmpBACnet.IEC_BACNET_DATE_TIME The BACnet date time to operate on.
InitializeBACnetDevObjPropReference (FUN) ¶ FUNCTION InitializeBACnetDevObjPropReference : BOOL Initializes a IEC_BACNET_DEV_OBJ_PROP_REFERENCE according to a given BACnetDevObjPropReference. InOut: Scope Name Type Comment Return InitializeBACnetDevObjPropReference BOOL Input devObjPropRef BACnetDevObjPropReference The BACnetDevObjPropReference to use for initialization. Inout bacDevObjPropRef CmpBACnet.IEC_BACNET_DEV_OBJ_PROP_REFERENCE The BACnet device object property reference to operate on.