Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 629
ASCII Conversion Instructions (STOD, STOR, DTOS, RTOS, UPPER, LOWER) Chapter 19
REAL to String (RTOS)
The RTOS instruction produces the ASCII representation of a REAL value.
Operands:
Relay Ladder
Structured Text
The operands are the same as those for the relay ladder RTOS instruction.
Description: The RTOS converts the Source to a string of ASCII characters and places the
result in the Destination.
Arithmetic Status Flags: Not affected
Fault Conditions:
Real to String
Source ?
??
Dest ?
??
RTOS
Operand Type Format Enter Notes
Source REAL Tag Tag that contains the REAL
value
Destination String Tag Tag to store the ASCII value String data types are:
·Default STRING data type
·Any new string data type that you create
Type Code Cause Recovery Method
4 51 The LEN value of the string tag is greater than the DATA size
of the string tag.
1. Check that no instruction is writing to the LEN member of
the string tag.
2. In the LEN value, enter the number of characters that the
string contains.
4 52 The output string is larger than the destination. Create a new string data type that is large enough for the
output string. Use the new string data type as the data type
for the destination.