Data Handling
The following functions/function blocks for data handling operations are available:
Function | Short description |
---|---|
*_TO_BUF | Copies elementary data types from a variable, an array or elements of a user-defined structure to a byte stream |
BIT_TEST | Reads 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_BIT | Reads the value of a single bit in a bit string |
GET_CHAR | Extracts one character out of a string of a variable of the data type STRING |
GET_LSB | Reads the value of the less significant BYTE of a bit string |
GET_MSB | Reads the value of the most significant BYTE of a bit string |
GET_WCHAR | Extracts 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_BIT | Inverts a single bit in a bit string |
MEMORY_COMPARE | Compares two memory areas |
MEMORY_COPY | Copies data from one runtime system data area to another runtime system data area (indexed copying) |
MEMORY_SET | Sets 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_BIT | Resets a single bit in a bit string |
S_BIT_IN_* | Sets a single bit in a bit string. |
SET_BIT | Sets a single bit in a bit string |
SET_LSB | Writes a value on the less significant BYTE of a bit string |
SET_MSB | Writes a value on the most significant BYTE of a bit string |
SIZEOF | Determines the size of a variable in the controller memory |
STRING_COPY | Copies each character of an input string to a buffer |
SWAP | Exchanges the most and the less significant BYTE of a bit string |