OneWireMaster.Scan (METH) ¶ METHOD Scan : BOOL This method re-scans the bus. The results can be seen at the outputs of the FB instance. InOut: Scope Name Type Return Scan BOOL
OneWireUniqueID (FB) ¶ FUNCTION_BLOCK OneWireUniqueID This function block contains the unique ID of a 1-wire device. Each device has such an ID. The OneWireMaster instance scans at start for the devices and lists them. InOut: Scope Name Type Initial Comment Input byClass BYTE 16#28 device class abyUniqueID ARRAY [0..5] OF BYTE unique ID Properties: StringRepresentation Structure: StringRepresentation (Property)
OneWireUniqueID.StringRepresentation (PROP) ¶ PROPERTY StringRepresentation : STRING This property allows to get or set the Unique ID as STRING with the format aa-bbccddeeffgg
ILocalizedDateTimeNames.GetMonthShort (METH) ¶ METHOD GetMonthShort : CharBufferPtr returns the localized text of the month as short name. If no localization exists, a defaulttext (textid) should be returned. The stored value, the returnpointer is set to, will be overridden by any next call of one of the Get-methods of the implementing functionblock in VisuElemBase. Therefore, the result should be used at once. The pointer should not be stored. InOut: Scope Name Type Comment Return GetMonthShort CharBufferPtr Input uiMonth UINT the month: 1: January,.. 12: December
Printf (FUN) ¶ FUNCTION Printf This function performs a “formatted printing” of the value <pValue> points to. InOut: Scope Name Type Comment Input cbsResult REFERENCE TO CharBufferString The buffer, where the result will be returned cbsFormat REFERENCE TO CharBufferString The format string used for formatting the value pValue POINTER TO BYTE A pointer to the begin of the piece of memory, where the value to format is stored. typeClass __SYSTEM.TYPE_CLASS A __SYSTEM.TYPE_CLASS value describing the type of the value to format
StuSprintf (FUN) ¶ FUNCTION StuSprintf : INT Does a sprintf for the given format string and the given variable. Will not return NULL! InOut: Scope Name Type Comment Return StuSprintf INT Input pstFormat POINTER TO STRING the formatstring pVarAdr POINTER TO DWORD the address of the variable that shall be printed udiVarType __SYSTEM.TYPE_CLASS the type of the variable as a __SYSTEM.TYPE_CLASS value pBuffer POINTER TO BYTE the buffer where the text is to be printed dwBufferSize UDINT the size of the buffer in bytes
StuSprintfW (FUN) ¶ FUNCTION StuSprintfW : INT Does a sprintf for the given format string and the given variable. Will not return NULL! InOut: Scope Name Type Comment Return StuSprintfW INT Input wstFormat POINTER TO WSTRING the formatstring pVarAdr POINTER TO DWORD the address of the variable that shall be printed udiVarType __SYSTEM.TYPE_CLASS the type of the variable as a __SYSTEM.TYPE_CLASS value pBuffer POINTER TO BYTE the buffer where the text is to be printed dwBufferSize UDINT the size of the buffer in bytes, not in wstring characters!
UTF8 ¶ ConvertUTF16toUTF8 (Function) ConvertUTF8toUTF16 (Function) GVL_UTF8 (GVL) IsLegalUTF8 (Function) IsSpaceCharacter (Function)
ConvertUTF16toUTF8 (FUN) ¶ FUNCTION ConvertUTF16toUTF8 : UDINT This function converts an UTF-16 string to an UTF-8 string (may be wrong for 3 or 4 character encoded UTF8 characters). InOut: Scope Name Type Comment Return ConvertUTF16toUTF8 UDINT Input sourceStart POINTER TO WORD Pointer to the UTF-16 string to convert targetStart POINTER TO BYTE Pointer to the UTF-8 string the converted string shall be stored to dwTargetBufferSize DWORD The size (in bytes) of the buffer (targetStart) the result shall be stored in bStrictConversion BOOL Do not continue on illegal characters
ConvertUTF8toUTF16 (FUN) ¶ FUNCTION ConvertUTF8toUTF16 : UDINT This function converts an UTF-8 encoded string to an UTF-16 encoded string (may be wrong for 3 or 4 character encoded UTF16 characters). InOut: Scope Name Type Comment Return ConvertUTF8toUTF16 UDINT Input sourceStart POINTER TO BYTE Pointer to the UTF-8 string to convert targetStart POINTER TO WORD Pointer to the WSTRING the result shall be stored in dwTargetBufferSize DWORD The size (in bytes) of the buffer (targetStart) the result shall be stored in bStrictConversion BOOL Do not continue on illegal characters