String Data Types - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Name
Data Type
LEN
DINT
DATA
SINT array

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.
Description
Notes
Number of characters in
The LEN automatically updates to the new count of characters whenever you:
the string
·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.
ASCII characters of the
·To access the characters of the string, address the name of the tag.
string
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.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
ASCII String Instructions (CONCAT, DELETE, FIND, INSERT, MID)
Chapter 18
609

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents