Defining strings in logic memory – Nematron Pointe Controller User Manual

Page 118

Advertising
background image

Chapter 5: Developing Controller Programs

Pointe Controller User Guide

116

by Alias, it is not necessary to keep your tags in any particular address or DRV
order.

Diagnostics Metadata

Every Input, Memory, and Output tag has associated with it three metadata
registers. These registers are allocated automatically when the tag is first defined
in Logic Memory, and they can be used to store diagnostic information about the
tag. For more information, see

Diagnostics Commands

on page 316.

5.4.3 Defining strings in Logic Memory

String variables are defined using dialogs that allow specification of a name, the
size or number of characters the variable may hold, and an initial value.

To define new String variables:

1. In the

Project Workspace pane

, double-click on Logic Memory to expand

the hierarchy.

2. Select and open the Strings data table. The Strings editor window will

appear.

3. Click Add to add a new address to the table.

4. Click in the Alias field of the empty address and enter a name for the

String. The name must be a continuous alphanumeric string that does not
begin with a number.

NOTE: Aliases are case sensitive.

5. Click in the Element Length field and enter the maximum number of

ASCII characters that the String should hold. Maximum length is 255.

Advertising