Overview

The PLC library Tc2_Utilities contains function blocks and functions for calling TwinCAT system functions and operating system functions as well as various conversion functions.

Operating system functions

Name

Description

NT_Shutdown

Shutting down the operating system (shutdown).

NT_AbortShutdown

Interrupting the shutdown process.

NT_Reboot

Carrying out a restart of the operating system.

NT_GetTime

Reading the current local Windows system time.

NT_SetLocalTime

Setting the current local Windows system time.

NT_StartProcess

Starts a Windows application from the PLC.

NT_SetTimeToRTCTime

Synchronizing the local Windows system time with the real-time clock of the PC.

FB_RegQueryValue

Reading out values from the registry.

FB_RegSetValue

Writing values to the Registry.

FB_EnumFindFileEntry

Searches in a directory for a file or a subdirectory whose name is similar to the specified name. Any entries found can be read individually.

FB_EnumFindFileList

Searches in a directory for a file or a subdirectory whose name is similar to the specified name. The found entries can be read out in groups.

FB_GetAdaptersInfo

Reads network adapter information.

FB_GetHostName

Reads the host name of the local PC.

FB_GetHostAddrByName

Converts the host name into the (IPv4) Internet protocol network address.

FB_GetTimeZoneInformation

Reads the time zone configuration of the operating system.

FB_SetTimeZoneInformation

Sets the time zone configuration of the operating system.

FB_LocalSystemTime

Returns the local Windows system time and summer time/winter time info.

PLC functions

Name

Description

PLC_Reset

Resets the PLC.

PLC_Start

Starts the PLC.

PLC_Stop

Stops the PLC.

PLC_ReadSymInfo

Reading the symbol information of the PLC.

PLC_ReadSymInfoByName

Reading the symbol information of a PLC variable with the help of the symbol name.

PLC_ReadSymInfoByNameEx

Reading the symbol information of a PLC variable with the help of the symbol name. The comment will be truncated if the available buffer size is insufficient.

Profiler

Determining the execution time of the PLC code.

WritePersistentData

Saving the persistent data to the data storage device from the PLC program.

FB_WritePersistentData

Saving the persistent data to the data storage device from the PLC program (extended version).

Checksum/CRC functions

Name

Description

F_CheckSum16

Calculates the 16 bit checksum.

F_DATA_TO_CRC16_CCITT

Calculates CRC16-CCITT (cyclical redundancy check) of any data type.

F_BYTE_TO_CRC16_CCITT

Calculates CRC16-CCITT (cyclical redundancy check) of an individual data byte.

System functions

Name

Description

TC_Restart

Restart the TwinCAT system.

TC_Stop

Stop the TwinCAT system.

TC_Config

Switching TwinCAT system to CONFIG mode.

TC_CpuUsage

Determining CPU usage of the TwinCAT system.

TC_SysLatency

Determining the current and maximum latency time of a TwinCAT system.

GetRemotePCInfo

Reading router information via the configured remote PCs.

FB_GetLocalAmsNetId

Reading the AmsNetId of the local TwinCAT PC.

FB_GetRouterStatusInfo

Reading TwinCAT router status information.

FB_EnumRouteEntry

Reading router connection information.

FB_AddRouteEntry

Adding a new router connection.

FB_RemoveRouteEntry

Deleting an existing router connection.

ROUTETRANSPORT_TO_STRING

Converts the AMS message router transport layer ID into a string.

FB_GetDeviceIdentification

Reads the device ID.

FB_GetDeviceIdentificationEx

Reads the device ID. (Allows longer strings with hardware model and serial number.)

FB_GetLicences

Reads the valid and invalid TwinCAT licenses.

FB_GetSystemId

Reads the SystemID as GUID.

FB_GetVolumeId

Reads the SystemID and the Volume System ID.

Scope View functions

TwinCAT Scope View functions are not supported by TwinCAT 3.

Scope Server functions

Name

Description

FB_ScopeServerControl

Controls (start/save..) the Scope Server for data logging.

ADS Monitor functions

Name

Description

FB_AmsLogger

Start/stop AMS Logger from the PLC.

Converting functions

Name

Description

DT_TO_SYSTEMTIME

Converting DATE_AND_TIME to Windows system time structure.

DT_TO_FILETIME

Converting DATE_AND_TIME to Windows file time.

SYSTEMTIME_TO_DT

Converting Windows system time structure to DATE_AND_TIME.

SYSTEMTIME_TO_FILETIME

Converting Windows system time structure to file time.

SYSTEMTIME_TO_STRING

Converting Windows system time structure to string.

STRING_TO_SYSTEMTIME

Converting string to Windows system time structure.

FILETIME_TO_DT

Converting Windows file time to DATE_AND_TIME.

FILETIME_TO_SYSTEMTIME

Converting Windows file time to system time structure.

DEC_TO_BCD

Converting decimal numbers to BCD numbers.

BCD_TO_DEC

Converting BCD numbers to decimal numbers.

DEG_TO_RAD

Converting degree-angle to radian.

RAD_TO_DEG

Converting radian to degree-angle.

TIME_TO_OTSTRUCT

Converting TIME variable to a structure with resolved milliseconds, seconds, minutes etc.

OTSTRUCT_TO_TIME

Converting a structure with resolved milliseconds, seconds, minutes etc. to TIME variable.

F_SwapRealEx

Replaces by the Hi and Lo Word of a REAL variable.

BYTE_TO_LREALEX

Allows an explicit conversion of the type BYTE to a positive floating point number of the type LREAL.

DWORD_TO_LREALEX

Allows an explicit conversion of the type DWORD to a positive floating point number of the type LREAL.

UDINT_TO_LREALEX

Allows an explicit conversion of the type UDINT to a positive floating point number of the type LREAL.

UINT_TO_LREALEX

Allows an explicit conversion of the type UINT to a positive floating point number of the type LREAL.

ULINT_TO_ULARGE

Converts a 64 bit number of the type ULINT into a 64 bit number of the type T_ULARGE_INTEGER.

USINT_TO_LREALEX

Allows an explicit conversion of the type USINT to a positive floating point number of the type LREAL.

BYTEARR_TO_MAXSTRING

Converts byte array into a string.

MAXSTRING_TO_BYTEARR

Converts string into a byte array.

F_TranslateFileTimeBias

Converts UTC time into local time and vice versa (by bias).

FB_TzSpecificLocalTimeToFileTime

Converts continuous local time (file time format) into UTC time.

FB_TzSpecificLocalTimeToSystemTime

Converts continuous local time (structured system time format) into UTC time.

FB_FileTimeToTzSpecificLocalTime

Converts UTC time (file time format) into local time.

FB_SystemTimeToTzSpecificLocalTime

Converts UTC time (structured system time format) into local time.

HEXASCNIBBLE_TO_BYTE

Converts the ASCII code of a hexadecimal half-byte character into a decimal value.

HEXCHRNIBBLE_TO_BYTE

Converts a hexadecimal half-byte character into its decimal value.

GuidsEqualByVal

Compares two GUID values

STRING functions

Name

Description

LREAL_TO_FMTSTR

Converts a flowing point number into a string with the desired number of decimal places.

DWORD_TO_DECSTR

Converts a decimal number into a decimal string.

DWORD_TO_HEXSTR

Converts a decimal number into a hexadecimal string.

DWORD_TO_OCTSTR

Converts a decimal number into an octal string.

DWORD_TO_BINSTR

Converts a decimal number into a binary string.

LWORD_TO_DECSTR

Converts a decimal number into a decimal string.

LWORD_TO_HEXSTR

Converts a decimal number into a hexadecimal string.

LWORD_TO_OCTSTR

Converts a decimal number into an octal string.

LWORD_TO_BINSTR

Converts a decimal number into a binary string.

PVOID_TO_DECSTR

Converts an address (pointer) into a decimal string.

PVOID_TO_HEXSTR

Converts an address (pointer) into a hexadecimal string.

PVOID_TO_OCTSTR

Converts an address (pointer) into an octal string.

PVOID_TO_BINSTR

Converts an address (pointer) into a binary string.

PVOID_TO_STRING

Converts an address (pointer) into a string.

STRING_TO_PVOID

Converts a string into an address (pointer).

LINT_TO_DECSTR

Converts a signed decimal number (64 bit) into a decimal string.

DINT_TO_DECSTR

Converts a signed decimal number (32 bit) into a decimal string.

F_FormatArgToStr

Converts and formats a decimal number or a flowing point number into a string.

BYTE_TO_BINSTR

Converts a decimal number of the type byte into a binary string.

BYTE_TO_DECSTR

Converts a decimal number into a decimal string.

BYTE_TO_HEXSTR

Converts a decimal number into a hexadecimal string.

BYTE_TO_OCTSTR

Converts a decimal number into an octal string.

WORD_TO_BINSTR

Converts a decimal number of the type word into a binary string.

WORD_TO_DECSTR

Converts a decimal number of the type word into a decimal string.

WORD_TO_HEXSTR

Converts a decimal number of the type word into a hexadecimal string.

WORD_TO_OCTSTR

Converts a decimal number of the type word into an octal string.

FB_FormatString

Converts and formats up to 10 arguments (decimal or flowing point numbers).

FB_EnumStringNumbers

Searches a string for numbers.

F_ToUCase

Converts lowercase letters into uppercase letters in a string.

F_ToLCase

Converts uppercase letters into lowercase letters in a string.

F_LTrim

Removes spaces at the beginning of a string.

F_RTrim

Removes spaces at the end of a string.

DATA_TO_HEXSTR

Converts binary data into hexadecimal string.

HEXSTR_TO_DATA

Converts hexadecimal string to binary data.

GUID_TO_STRING

Converts a structured GUID variable into a GUID string variable.

GUID_TO_REGSTRING

Converts a structured GUID variable into a registry GUID string variable

REGSTRING_TO_GUID

Converts a registry GUID string variable into a structured GUID variable.

Extended STRING functions

Name

Description

CHAR_TO_WCHAR

Converts a character of the data type STRING into a character of the data type WSTRING (with null termination).

CONCAT2

Concatenates two strings of the data type STRING.

DELETE2

Removes nLen characters from a string, starting at position nPos.

F_StringIsASCII

Checks whether a string contains only ASCII characters (0x000 to 0x7F) and returns the number of ASCII characters.

FIND2

Finds a string, which may occur more than once, in another string.

FindAndDelete

Finds a string, which may occur more than once, in another string and removes it.

FindAndDeleteChar

Finds a character, which may occur more than once, in a string and removes it.

FindAndReplace

Finds a string, which may occur more than once, in another string and replaces it with another string.

FindAndReplaceChar

Finds a character, which may occur more than once, in a string and replaces it with another character.

INSERT2

Inserts a string into another string after position nPos.

LEN2

Returns the number of characters in a string.

REPLACE2

Replaces nLen characters of a string with another string, starting at position nPos.

sLiteral_TO_UTF8

Converts any character string of the data type STRING into a character string in UTF-8 format.

STRING_TO_UTF8

Converts any string of a variable of the data type STRING to a string in UTF-8 format.

STRING_TO_WSTRING2

Converts a variable of the data type STRING into a variable of the data type WSTRING.

STRNCPY

Copies the character string of a variable of the data type STRING and checks whether the character string was completely copied

UTF8_TO_STRING

Converts a string in UTF-8 format into a string of the data type STRING.

UTF8_TO_WSTRING

Converts a string in UTF-8 format into a string of the data type WSTRING.

UTF8Len

Returns the number of characters in a UTF-8 string.

WCHAR_TO_CHAR

Converts a variable of the data type WSTRING into a variable of the data type STRING (with null termination)

WCONCAT2

Concatenates two strings of the data type WSTRING of any length.

WLEN2

Returns the number of characters in a Unicode string of the data type WSTRING.

wsLiteral_TO_UTF8

Converts any character string of the data type WSTRING into a character string in UTF-8 format.

WSTRING_TO_STRING2

Converts a variable of the data type WSTRING into a variable of the data type STRING.

WSTRING_TO_UTF8

Converts a string of a variable of the data type WSTRING into a string in UTF-8 format.

WSTRNCPY

Copies a character string of a variable of the data type WSTRING and checks whether the character string was completely copied.

64 bit functions (unsigned)

Name

Description

ULARGE_INTEGER

Initializes/sets a 64 bit number.

UInt64Add64

Adds two 64 bit numbers.

UInt64Add64Ex

Adds two 64 bit numbers (with Overflow check).

UInt64Sub64

Subtracts two 64 bit numbers.

UInt64Cmp64

Compares two 64 bit numbers.

UInt32x32To64

Multiplies two 32 bit numbers. The result is a 64 bit number.

UInt64Mul64

Multiplies two 64 bit numbers. The result is a 64 bit number.

UInt64Mul64Ex

Multiplies two 64 bit numbers. The result is a 64 bit number (with overflow check).

UInt64Div64

Division of two 64 bit numbers.

UInt64Div64Ex

Division of two 64 bit numbers (with remainder).

Uint64Div16Ex

Division of one 64 bit number by a 16 bit number. The result is a 64 bit number.

UInt64Mod64

Modulo division of two 64 bit numbers.

UInt64And

Bit by bit AND of two 64 bit numbers.

UInt64Or

Bit by bit OR of two 64 bit numbers.

UInt64Not

Bit by bit NOT of one 64 bit number.

UInt64Xor

Bit by bit XOR of two 64 bit numbers.

UInt64Rol

Bit by bit left rotation of one 64 bit number.

UInt64Ror

Bit by bit right rotation of one 64 bit number.

UInt64Shl

Bit by bit left shift of one 64 bit number.

UInt64Shr

Bit by bit right shift of one 64 bit number.

UInt64Min

Minimum function

UInt64Max

Maximum function

UInt64Limit

Limitation

UInt64isZero

Checks whether the value of the 64 bit number is zero.

UINT64_TO_STRING

Converts 64 bit number into a string.

UINT64_TO_LREAL

Converts 64 bit number into a LREAL.

STRING_TO_UINT64

Converts a STRING into a 64 bit number.

LREAL_TO_UINT64

Converts LREAL into a 64 bit number.

LWORD_TO_ULARGE

Converts a 64 bit number of the type LWORD into a 64 bit number of the type T_ULARGE_INTEGER.

ULARGE_TO_LWORD

Converts a 64 bit number of the type T_ULARGE_INTEGER into a 64 bit number of the type LWORD.

ULARGE_TO_ULINT

Converts a 64 bit number of the type T_ULARGE_INTEGER into a 64 bit number ULINT.

64 bit functions (signed)

Name

Description

LARGE_INTEGER

Initializes/sets a 64 bit number.

Int64Add64

Adds two 64 bit numbers.

Int64Add64Ex

Adds two 64 bit numbers (with Overflow check).

Int64Sub64

Subtracts two 64 bit numbers.

Int64Cmp64

Compares two 64 bit numbers.

Int64Div64Ex

Division of two 64 bit numbers (with remainder).

Int64Not

Bit by bit NOT of one 64 bit number.

Int64isZero

Checks whether the value of the 64 bit number is zero.

Int64Negate

Negates a 64 bit number.

INT64_TO_LREAL

Converts 64 bit number into a LREAL.

LREAL_TO_INT64

Converts LREAL into a 64 bit number.

LARGE_TO_ULARGE

Converts a signed 64 bit number into an unsigned 64 bit number.

ULARGE_TO_LARGE

Converts an unsigned 64 bit number into a signed 64 bit number.

LARGE_TO_LINT

Converts a signed 64 bit number of the type LINT into a signed 64 bit number of the type T_LARGE_INTEGER.

LINT_TO_LARGE

Converts a signed 64 bit number of the type T_LARGE_INTEGER into a signed 64 bit number of the type LINT.

16 bit fixed point number functions (signed)

Name

Description

FIX16Add

Adds two fixed-point numbers.

FIX16Align

Changes the resolution of a fixed-point number.

FIX16Sub

Subtracts two fixed-point numbers.

FIX16Div

Divides two fixed-point numbers.

FIX16Mul

Multiplies two fixed-point numbers.

LREAL_TO_FIX16

Converts LREAL into a fixed-point number.

WORD_TO_FIX16

Converts WORD into a fixed-point number.

FIX16_TO_LREAL

Converts a fixed-point number into LREAL.

FIX16_TO_WORD

Converts a fixed-point number into WORD.

Byte order converting functions

Name

Description

HOST_TO_BE16

Host-to-network converting (16 bit number)

HOST_TO_BE32

Host-to-network converting (32 bit number)

HOST_TO_BE64

Host-to-network converting (64 bit number, „legacy“-type: T_ULARGE_INTEGER)

HOST_TO_BE64EX

Host-to-network converting (64 bit number, „native“-type: LWORD)

HOST_TO_BE128

Host-to-network converting (128 bit number, „legacy“-type: T_UHUGE_INTEGER)

BE16_TO_HOST

Host-to-network converting (16 bit number)

BE32_TO_HOST

Network-to-host converting (32 number)

BE64_TO_HOST

Network-to-host converting (64 bit number, „legacy“-type: T_ULARGE_INTEGER)

BE64_TO_HOSTEX

Network-to-host converting (64 bit number, „native“-type: LWORD)

BE128_TO_HOST

Network-to-host converting (128 bit number, „legacy“-type: T_UHUGE_INTEGER)

FLOAT functions

Name

Description

BOOL_TO_FLOAT

Converts a variable of the type BOOL to a variable of the type LREAL.

DINT_TO_FLOAT

Converts a variable of the type DINT to a variable of the type FLOAT.

FLOAT_TO_BOOL

Converts a variable of the type FLOAT to a variable of the type BOOL.

FLOAT_TO_DINT

Converts a variable of the type FLOAT to a variable of the type DINT.

FLOAT_TO_INT

Converts a variable of the type FLOAT to a variable of the type INT.

FLOAT_TO_SINT

Converts a variable of the type FLOAT to a variable of the type SINT.

FLOAT_TO_STRING

Converts a variable of the type FLOAT to a variable of the type STRING.

FLOAT_TO_TIME

Converts a variable of the type FLOAT to a variable of the type TIME.

FLOAT_TO_UDINT

Converts a variable of the type FLOAT to a variable of the type UDINT.

FLOAT_TO_UINT

Converts a variable of the type FLOAT to a variable of the type UINT.

INT_TO_FLOAT

Converts a variable of the type INT to a variable of the type FLOAT.

SINT_TO_FLOAT

Converts a variable of the type SINT to a variable of the type FLOAT.

TIME_TO_FLOAT

Converts a variable of the type TIME to a variable of the type FLOAT.

UDINT_TO_FLOAT

Converts a variable of the type UDINT to a variable of the type FLOAT.

UINT_TO_FLOAT

Converts a variable of the type UINT to a variable of the type FLOAT.

LrealIsFinite

Returns TRUE, when the argument of the type LREAL has a finite value.

LrealIsNaN

Returns TRUE, when the argument of the type LREAL has an undefined value (NaN).

LCOMPLEX functions

LcomplexIsNaN

Returns TRUE, when the argument of the type LCOMPLEX has an undefined value (NaN).

LcomplexAbs

Returns the absolute value of the complex number transferred.

P[TYPE]_TO_[TYPE] converting functions

Name

Description

PBOOL_TO_BOOL

Returns the content of a BOOL pointer variable.

PBYTE_TO_BYTE

Returns the content of a BYTE pointer variable.

PDATE_TO_DATE

Returns the content of a DATE pointer variable.

PDINT_TO_DINT

Returns the content of a DINT pointer variable.

PDT_TO_TO_DT

Returns the content of a DT pointer variable.

PDWORD_TO_DWORD

Returns the content of a DWORD pointer variable.

PHUGE_TO_HUGE

Returns the content of a T_HUGE_INTEGER pointer variable.

PINT_TO_INT

Returns the content of an INT pointer variable.

PLARGE_TO_LARGE

Returns the content of a T_LARGE_INTEGER pointer variable.

PLINT_TO_LINT

Returns the content of a LINT pointer variable.

PLREAL_TO_TO_LREAL

Returns the content of a LREAL pointer variable.

PLWORD_TO_LWORD

Returns the content of a LWORD pointer variable.

PMAXSTRING_TO_MAXSTRING

Returns the content of a T_MaxString pointer variable.

PREAL_TO_REAL

Returns the content of a REAL pointer variable.

PSINT_TO_SINT

Returns the content of a SINT pointer variable.

PSTRING_TO_STRING

Returns the content of a STRING pointer variable.

PTIME_TO_TIME

Returns the content of a TIME pointer variable.

PTOD_TO_TOD

Returns the content of a TOD pointer variable.

PUDINT_TO_UDINT

Returns the content of an UDINT pointer variable.

PUHUGE_TO_UHUGE

Returns the content of a T_UHUGE_INTEGER pointer variable.

PUINT_TO_UINT

Returns the content of an UINT pointer variable.

PULARGE_TO_ULARGE

Returns the content of a T_ULARGE_INTEGER pointer variable.

PULINT_TO_ULINT

Returns the content of an ULINT pointer variable.

PUSINT_TO_USINT

Returns the content of an USINT pointer variable.

PWORD_TO_WORD

Returns the content of a WORD pointer variable.

PUINT64_TO_UINT64

Returns the content of a T_ULARGE_INTEGER pointer variable.

T_Arg help functions

Name

Description

F_ARGCMP

Compares two variables of the type T_Arg

F_ARGCPY

Copies the value of a variable of the type T_Arg to another variable and returns the number of successfully copied data bytes.

F_ARGISZERO

Returns TRUE if one of the T_Arg member variables has the value zero or was not initialised.

F_BIGTYPE

Returns information on a struct or array variable in a structure of the type T_Arg.

F_BOOL

Returns information on a BOOL variable in a structure of the type T_Arg.

F_BYTE

Returns information on a BYTE variable in a structure of the type T_Arg.

F_DINT

Returns information on a DINT variable in a structure of the type T_Arg.

F_DWORD

Returns information on a DWORD variable in a structure of the type T_Arg.

F_HUGE

Returns information on a T_HUGE_INTEGER variable in a structure of the type T_Arg.

F_INT

Returns information on an INT variable in a structure of the type T_Arg.

F_LARGE

Returns information on a T_LARGE_INTEGER variable in a structure of the type T_Arg.

F_LINT

Returns information on a LINT variable in a structure of the type T_Arg.

F_LREAL

Returns information on a LREAL variable in a structure of the type T_Arg.

F_LWORD

Returns information on a LWORD variable in a structure of the type T_Arg.

F_REAL

Returns information on a REAL variable in a structure of the type T_Arg.

F_SINT

Returns information on a SINT variable in a structure of the type T_Arg.

F_STRING

Returns information on a T_MaxString variable in a structure of the type T_Arg.

F_UDINT

Returns information on an UDINT variable in a structure of the type T_Arg.

F_UHUGE

Returns information on a T_UHUGE_INTEGER variable in a structure of the type T_Arg.

F_UINT

Returns information on an UINT variable in a structure of the type T_Arg.

F_ULARGE

Returns information on a T_ULARGE_INTEGER variable in a structure of the type T_Arg.

F_ULINT

Returns information on an ULINT variable in a structure of the type T_Arg.

F_USINT

Returns information on an USINT variable in a structure of the type T_Arg.

F_WORD

Returns information on a WORD variable in a structure of the type T_Arg.

F_PVOID

Returns information on a PVOID variable in a structure of the type T_Arg.

CSV format functions

Name

Description

CSVFIELD_TO_STRING

Converts the value of a string with a data field in CSV format into an PLC string variable.

STRING_TO_CSVFIELD

Converts the value of a PLC string variable into a string with a data field in CSV format.

CSVFIELD_TO_ARG

Converts a byte buffer with a data field in CSV format into a value of a random PLC variable.

ARG_TO_CSVFIELD

Converts the value of a random PLC variable into a byte buffer with a data field in CSV format.

FB_CSVMemBufferReader

Splits data sets in CSV format which are in a byte buffer into individual data fields.

FB_CSVMemBufferWriter

Generates individual or several data sets in a byte buffer from individual data fields

Licensing functions

Name

Description

FB_LicFileGetStorageInfo

Reads the StorageInfo of the license dongle and the file directory.

FB_LicFileCreate

Creates a file on the license dongle.

FB_LicFileDelete

Deletes a file from the license dongle.

FB_LicFileRead

Reads a file from the license dongle to a buffer.

FB_LicFileCopyToDongle

Copies a file from the hard disk to the license dongle.

FB_LicFileCopyFromDongle

Copies a file from the license dongle to the hard disk.

FB_CheckLicense

Determines the TwinCAT 3 license status for a given license ID.

FB_GetDongleSystemId

Reads the system ID and the volume ID of the TwinCAT 3 license dongle as GUID.

FB_GetLicenseDongle

Determines the number of connected license dongles and returns address and status.

FB_GetLicenses

Reads the valid and invalid TwinCAT licenses.

FB_GetLicensesEx

Determines the status of all TwinCAT 3 licenses and OEM licenses.

Other functions

Name

Description

FB_BasicPID

Simple PID controller

F_GetVersionTcUtilities

Reading version information of the library.

IsFinite

Verifies the formatting of a floating point number in accordance with the IEEE.

F_YearIsLeapYear

Determines whether a year is a leap year.

F_GetMaxMonthDays

Determines the maximum number of days in a month.

F_GetDOYOfYearMonthDay

Determines the number of the day in the year.

F_GetMonthOfDOY

Determines the month based on the day number in the year.

F_GetDayOfWeek

Determines the number of the weekday.

F_GetWeekOfTheYear

Determines the calendar week.

F_GetDayOfMonthEx

Determines the date of the first, second etc. weekday in a specified month and year.

F_GetWeekOfTheYear

Returns the number of the calendar week for a predefined date.

RTC

"Software"-RTC (Real Time Clock)

RTC_EX

"Software"-RTC (Real Time Clock)

RTC_EX2

"Software"-RTC (Real Time Clock)

FB_FileRingBuffer

Writes/reads data sets to or from the file (FIFO).

FB_MemRingBuffer

Writes/reads data sets to or from a buffer variable (FIFO).

FB_MemRingBufferEx

Writes/reads data sets to or from a buffer variable (FIFO).

FB_StringRingBuffer

Writes/reads strings to or from a buffer variable (FIFO).

FB_MemStackBuffer

Writes/reads data sets to or from a buffer variable (LIFO).

FB_MemBufferMerge

Merges individual small data segments to one larger data segment.

FB_MemBufferSplit

Splits a memory area (data buffer) into several smaller segments.

FB_HashTableCtrl, F_CreateHashTableHnd

Simple hash table.

FB_LinkedListCtrl, F_CreateLinkedListHnd

Simple linked list (double linked).

DCF77_TIME

A simple DCF77 decoder.

DCF77_TIME_EX

DCF77 decoder with plausibility check of two consecutive telegrams and time zone information.