Type conversion and composition
Function blocks in the group “Type conversion and composition”. Each link opens the block page; sorted by library and name.
| Block | Page title | Library | What it is for |
|---|---|---|---|
| BCD_TO_UDINT | BCD_TO_UDINT | Basic Analogue Boxes | Function converts a bit array (ANY_BIT) to an integer type. |
| BCD_TO_UINT | BCD_TO_UINT | Basic Analogue Boxes | Function converts a bit array (ANY_BIT) to an integer type. |
| BCD_TO_ULINT | BCD_TO_ULINT | Basic Analogue Boxes | Function converts a bit array (ANY_BIT) to an integer type. |
| BCD_TO_USINT | BCD_TO_USINT | Basic Analogue Boxes | Function converts a bit array (ANY_BIT) to an integer type. |
| bd18_bit_composition | Bit composition | Basic Analogue Boxes | Function brings bits together to create an integer value. |
| bd18_bit_composition_8bit | Bit composition, 8 bits | Basic Analogue Boxes | The function brings 8 bits together to create an integer value. |
| bd19_bit_decomposition | Bit decomposition | Basic Analogue Boxes | The function decomposes an integer value to bits (which are formed in an array). |
| bd19_bit_decomposition_8bit | Bit decomposition, 8 bits | Basic Analogue Boxes | The function decomposes an integer value to 8 bits (which are formed in an array). |
| bd54_int_decomposition | Integer decomposition | Basic Analogue Boxes | The block decomposes the input data to up to four (integer) values composed from defined range of bits. |
| bd55_int_composition | Integer Composition | Basic Analogue Boxes | The block composes the output value from up to 4 binary input vectors with defined positioning within the output vector. |
| DATE_TO_DT | DATE_TO_DT | Basic Analogue Boxes | The function brings the input value to the output as a absolute time. |
| DATE_TO_LDATE | DATE_TO_LDATE | Basic Analogue Boxes | The function brings the input value to the output as a date. |
| DATE_TO_LDT | DATE_TO_LDT | Basic Analogue Boxes | The function brings the input value to the output as a absolute time. |
| DATE_TO_LTOD | DATE_TO_LTOD | Basic Analogue Boxes | The function brings the input value to the output as a time in a day. |
| DATE_TO_TOD | DATE_TO_TOD | Basic Analogue Boxes | The function brings the input value to the output as a time in a day. |
| DT_TO_DATE | DT_TO_DATE | Basic Analogue Boxes | The function brings the input value to the output as a date. |
| DT_TO_LDT | DT_TO_LDT | Basic Analogue Boxes | The function brings the input value to the output as a absolute time. |
| DT_TO_LTOD | DT_TO_LTOD | Basic Analogue Boxes | The function brings the input value to the output as a time in a day. |
| DT_TO_TOD | DT_TO_TOD | Basic Analogue Boxes | The function brings the input value to the output as a time in a day. |
| LDATE_TO_DATE | LDATE_TO_DATE | Basic Analogue Boxes | The function brings the input value to the output as a date. |
| LDATE_TO_DT | LDATE_TO_DT | Basic Analogue Boxes | The function brings the input value to the output as a absolute time. |
| LDT_TO_DATE | LDT_TO_DATE | Basic Analogue Boxes | The function brings the input value to the output as a date. |
| LDT_TO_DT | LDT_TO_DT | Basic Analogue Boxes | The function brings the input value to the output as a absolute time. |
| LDT_TO_LDATE | LDT_TO_LDATE | Basic Analogue Boxes | The function brings the input value to the output as a date. |
| LDT_TO_TOD | LDT_TO_TOD | Basic Analogue Boxes | The function brings the input value to the output as a time in a day. |
| LTIME_TO_TIME | LTIME_TO_TIME | Basic Analogue Boxes | The function brings the input value to the output as a time period duration. |
| LTOD_TO_DT | LTOD_TO_DT | Basic Analogue Boxes | The function brings the input value to the output as a time in a day. |
| LTOD_TO_LDT | LTOD_TO_LDT | Basic Analogue Boxes | The function brings the input value to the output as a time in a day. |
| LTOD_TO_TOD | LTOD_TO_TOD | Basic Analogue Boxes | The function brings the input value to the output as a time in a day. |
| TIME_TO_LTIME | TIME_TO_LTIME | Basic Analogue Boxes | The function brings the input value to the output as a time period duration. |
| TO_BCD_BOOL | TO_BCD_BOOL | Basic Analogue Boxes | The function performs conversion of an integer (ANY_INT) to a logical value (BOOL). |
| TO_BCD_BYTE | TO_BCD_BYTE | Basic Analogue Boxes | The function converts any integer number (ANY_INT) to a binary-coded decimal bit array (BYTE). |
| TO_BCD_DWORD | TO_BCD_DWORD | Basic Analogue Boxes | The function converts any integer number (ANY_INT) to a binary-coded decimal bit array (DWORD). |
| TO_BCD_LWORD | TO_BCD_LWORD | Basic Analogue Boxes | The function converts any integer number (ANY_INT) to a binary-coded decimal bit array (LWORD). |
| TO_BCD_WORD | TO_BCD_WORD | Basic Analogue Boxes | The function converts any integer number (ANY_INT) to a binary-coded decimal bit array (WORD). |
| TO_BYTE | TO_BYTE | Basic Analogue Boxes | The function brings the bit value of the input value to the output. |
| TO_DINT | TO_DINT | Basic Analogue Boxes | The function brings the whole number of the input value to the output. |
| TO_DWORD | TO_DWORD | Basic Analogue Boxes | The function brings the bit value of the input value to the output. |
| TO_INT | TO_INT | Basic Analogue Boxes | The function brings the whole number of the input value to the output. |
| TO_LINT | TO_LINT | Basic Analogue Boxes | The function brings the whole number of the input value to the output. |
| TO_LREAL | TO_LREAL | Basic Analogue Boxes | The function brings the input value to the output as a real number. |
| TO_LWORD | TO_LWORD | Basic Analogue Boxes | The function brings the bit value of the input value to the output. |
| TO_REAL | TO_REAL | Basic Analogue Boxes | The function brings the input value to the output as a real number. |
| TO_SINT | TO_SINT | Basic Analogue Boxes | The function brings the whole number of the input value to the output. |
| TO_STRING | TO_STRING | Basic Analogue Boxes | The function brings the input value to the output as a string. |
| TO_UDINT | TO_UDINT | Basic Analogue Boxes | The function brings the whole number of the input value to the output. |
| TO_ULINT | TO_ULINT | Basic Analogue Boxes | The function brings the whole number of the input value to the output. |
| TO_USINT | TO_USINT | Basic Analogue Boxes | The function brings the whole number of the input value to the output. |
| TO_WORD | TO_WORD | Basic Analogue Boxes | The function brings the bit value of the input value to the output. |
| TOD_TO_LTOD | TOD_TO_LTOD | Basic Analogue Boxes | The function brings the input value to the output as a time in a day. |
| TO_BOOL | TO_BOOL | Basic Digital Boxes | The function brings the last bit of the input value to the output. |