Instructions that convert values between numeric (INT, DINT, REAL), boolean (BOOL), and text (STRING) data types.
| Instruction | Operands | Description |
|---|---|---|
| INT_TO_STRING | IN (INT) -> target (STRING) |
Convert 16-bit integer to string |
| DINT_TO_STRING | IN (DINT) -> target (STRING) |
Convert 32-bit integer to string |
| REAL_TO_STRING | IN (REAL) -> target (STRING) |
Convert floating-point number to string |
| STRING_TO_INT | IN (STRING) -> target (INT) |
Parse string as 16-bit integer |
| STRING_TO_REAL | IN (STRING) -> target (REAL) |
Parse string as floating-point number |
| BOOL_TO_STRING | IN (BOOL) -> target (STRING) |
Convert boolean to "TRUE" or "FALSE" |
Combine conversion instructions with the
P(Pulse) qualifier to execute once when the step activates, or attach them directly to a transition to convert values when the transition fires.