Rockwell Automation FactoryTalk View Machine Edition Users Guide User Manual

Page 503

Advertising
background image

24

Use embedded variables

24-5

• •

Tag_name is the tag to show; you can also type a literal string or tag placeholder here. The
string cannot contain spaces.

SHOWSTAR (optional) specifies that if the string is longer than the fixed number of
characters, an asterisk (*) will be shown to indicate the string is truncated. If you use the
minus sign (-), the asterisk will be shown as the first character at the left end of the string.
Otherwise, the asterisk will be shown as the last character at the right end of the string.

Examples: String embedded variable syntax

To show the current value of a string tag called Blower_status, with a fixed length of 20
characters, you would type this:

/*S:20 Blower_status*/

To show the literal string Oven temperature, type this:

/*LS:20 “Oven temperature”*/

To show the literal string 36.5, type this:

/*LS:3 36.5*/

To assign the tag placeholder #1, without a fixed string length, type this:

/*S:0 #1*/

To show the value of the string tag Conveyor_message, with a fixed length of 40, showing
the right-most characters, with an asterisk to indicate if the message is truncated, type this:

/*S:-40 Conveyor_message SHOWSTAR*/

Advertising