Embedded variable syntax, Numeric embedded variable syntax, Embedded variable syntax -3 – Rockwell Automation FactoryTalk View Machine Edition Users Guide User Manual

Page 501: Numeric embedded variable syntax -3

Advertising
background image

24

Use embedded variables

24-3

• •

5. Fill in the options in the dialog box that opens. For details about the options, see Help.

To create an embedded variable in a message

1. In the Message column of the Local Messages, Information Messages, or Alarm Setup

editor, right click and then click Edit String.

2. Click Insert Variable.

3. Click the type of variable to insert.

4. Fill in the options in the dialog box that opens. For details about the options, see Help.

Embedded variable syntax

Embedded variables are case sensitive, and must use specific syntax to work. Otherwise,
the embedded variable is treated as a piece of text. Therefore, we do not recommend
creating and editing embedded variables manually. Instead, use the Insert Variable and
Edit Variable dialog boxes.

Numeric embedded variable syntax

Use numeric embedded variables to insert analog or digital tag values into captions, title
bars, and messages. You can use both HMI and data server tags.

You can also insert “literal” numbers to show a constant or to specify a tag placeholder in
the caption or message.

Numeric embedded variables use this syntax:

/*LN:# Tag_name Fill_character DP:#*/

where

L (optional) indicates it is a literal (constant) number. This symbol prevents a tag read. If
you type a tag placeholder for the Tag_name, the value of the placeholder is substituted
from the parameter file or global object parameter definition.

N indicates it’s a numeric embedded variable.

# indicates the number of digits.

Advertising