Introduction

Add to My manuals
704 Pages

advertisement

Introduction | Manualzz

ASCII Conversion Instructions (STOD, STOR, DTOS, RTOS, UPPER, LOWER) Chapter 19

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 Logix5000 Controllers Common Procedures, publication 1756-PM001.

Name:

LEN

Data Type:

DINT

Each string data type contains the following members:

Description:

number of characters in the string

Notes:

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

DATA SINT array ASCII characters of the 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.

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.

Publication 1756-RM003K-EN-P - July 2008

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

613

advertisement

Related manuals

advertisement

Table of contents