GetUnsignedFromContents (FUN) ¶ FUNCTION GetUnsignedFromContents : UDINT Tries to evaluate property contents as UDINT data type. If the contents are not of type UDINT 0 is returned. InOut: Scope Name Type Comment Return GetUnsignedFromContents UDINT Input conts CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS The contents to be evaluated as UDINT.
GetWStringFromContents (FUN) ¶ FUNCTION GetWStringFromContents : WSTRING(255) Tries to evaluate property contents as WSTRING data type. If the contents are not of type WSTRING “” is returned. InOut: Scope Name Type Comment Return GetWStringFromContents WSTRING(255) Input conts CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS The contents to be evaluated as DINT.
GetDateFromContents (FUN) ¶ FUNCTION GetDateFromContents : DATE Tries to evaluate property contents as DATE data type. If the contents are not of type DATE 1970-1-1 is returned. InOut: Scope Name Type Comment Return GetDateFromContents DATE Input conts CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS The contents to be evaluated as DATE.
GetDateRangeFromContents (FUN) ¶ FUNCTION GetDateRangeFromContents : BACnetDateRange Tries to evaluate property contents as BACnetDateRange data type. If the contents are not of type BACnetDateRange 1970-1-1 is returned. InOut: Scope Name Type Comment Return GetDateRangeFromContents BACnetDateRange Input conts CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS The contents to be evaluated as BACnetDateRange .
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.