EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #627 background imageLoading...
Page #627 background image
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 627
ASCII Conversion Instructions (STOD, STOR, DTOS, RTOS, UPPER, LOWER) Chapter 19
DINT to String (DTOS)
The DTOS instruction produces the ASCII representation of a value.
Operands:
Relay Ladder
Structured Text
The operands are the same as those for the relay ladder DTOS instruction.
Description: The DTOS converts the Source to a string of ASCII characters and places the
result in the Destination.
Arithmetic Status Flags: Not affected
Fault Conditions:
DINT to String
Source ?
??
Dest ?
??
DTOS
Operand Type Format Enter Notes
Source SINT
INT
DINT
REAL
Tag Tag that contains the value If the Source is a REAL, the instruction converts it to
a DINT value. Refer to REAL to an Integer on
page 653.
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.
DTOS(Source,Dest);
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.

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals