Block that performs the conversion of a REAL value into a STRING value.
Ladder Representation
![]()
Block Structure
Variable Type |
Name |
Data Type |
Description |
VAR_INPUT |
EN |
BOOL |
Block enabling |
IN |
REAL |
Value in REAL |
|
VAR_OUTPUT |
DONE |
BOOL |
End of operation |
OUT |
STRING |
Value in STRING |
Operation
When this block has a TRUE value in EN, it interprets the IN value as REAL and converts it into STRING, storing in OUT and sending TRUE to the DONE output.
|
NOTE! If the number represented has more digits than the capacity of the STRING, the value will be truncated. |
When EN has FALSE value, OUT remains unchanged and DONE remains FALSE.
Compatibility
Device |
Version |
PLC300 |
2.10 or higher |
Block Flowchart

Example in Ladder
The following examples show various conversions of REAL type values into STRING. All conversions enable the DONE output to the end of the operation.

The conversion above was successfully completed.

The conversion above was successfully completed.

The above conversion was successful, but the size of the result of the conversion is greater than the OUT size, and this has been truncated.
Example in ST
The example below displays the instructions for applying the example above in the ST language.
VAR IN : REAL := 485.695; OUT : STRING; END_VAR
OUT := FB_REAL_TO_STRING( EN:=DI1, IN:=IN, DONE=>DO1);
|
|---|