-

Data Handling

The following functions/function blocks for data handling operations are available:

FunctionShort description
*_TO_BUFCopies elementary data types from a variable, an array or elements of a user-defined structure to a byte stream
BIT_TESTReads the value of a single bit in a bit string
BUF_TO_*Copies elementary data types from a byte stream to a variable, an array or elements of a user-defined structure
GET_BITReads the value of a single bit in a bit string
GET_CHARExtracts one character out of a string of a variable of the data type STRING
GET_LSBReads the value of the less significant BYTE of a bit string
GET_MSBReads the value of the most significant BYTE of a bit string
GET_WCHARExtracts one character out of a string of a variable of the data type WSTRING
I_BIT_IN_*Inverts a single bit in a bit string.
INVERT_BITInverts a single bit in a bit string
MEMORY_COMPARECompares two memory areas
MEMORY_COPYCopies data from one runtime system data area to another runtime system data area (indexed copying)
MEMORY_SETSets a given memory area
PARITY Checks if the number of set bits is even or odd
R_BIT_IN_*Resets a single bit in a bit string.
RESET_BITResets a single bit in a bit string
S_BIT_IN_*Sets a single bit in a bit string.
SET_BITSets a single bit in a bit string
SET_LSBWrites a value on the less significant BYTE of a bit string
SET_MSBWrites a value on the most significant BYTE of a bit string
SIZEOFDetermines the size of a variable in the controller memory
STRING_COPYCopies each character of an input string to a buffer
SWAPExchanges the most and the less significant BYTE of a bit string