Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 609
ASCII String Instructions (CONCAT, DELETE, FIND, INSERT, MID) Chapter 18
String Data Types
You store ASCII characters in tags that use a string data type.
·You can use the default STRING data type. It stores up to 82 characters.
·You can create a new string data type that stores less or more characters.
To create a new string data type, see the Logix5000 Controllers Common Procedures
Programming Manual, publication 1756-PM001
.
Each string data type contains the following members.
Name Data Type Description Notes
LEN DINT Number of characters in
the string
The LEN automatically updates to the new count of characters whenever you:
·Use the String Browser dialog box to enter characters.
·Use instructions that read, convert, or manipulate a string.
The LEN shows the length of the current string. The DATA member may contain additional,
old characters, which are not included in the LEN count.
DATA SINT array ASCII characters of the
string
·To access the characters of the string, address the name of the tag.
For example, to access the characters of the string_1 tag, enter string_1.
·Each element of the DATA array contains one character.
·You can create new string data types that store less or more characters.