String embedded variables, Time and date embedded variables – Rockwell Automation FactoryTalk View Machine Edition Users Guide User Manual

Page 506

Advertising
background image

F

ACTORY

T

ALK

V

IEW

M

ACHINE

E

DITION

U

SER

S

G

UIDE

24-8

• •

Number formats

The numeric variable uses the number format of the current application language. For
example, if the application language uses a comma for the decimal symbol, the numeric
variable uses a comma for the decimal symbol.

For information about using multiple languages, see Chapter 12.

String embedded variables

For string embedded variables that do not use a fixed number of characters, the entire
string tag value is shown, unless a null character is read. Nothing after a null character is
shown.

If a fixed number of characters is used, the variable shows the value of the tag up to the
number of characters specified, unless a null character is encountered before the specified
length. Nothing is shown after a null character. If necessary, spaces are used to make up
the required number of characters.

Null characters have a hex value of 0. The null character indicates the end of string input.
It does not add to the actual string length.

If the string is longer than the specified number of characters, it is truncated to fit the
number of characters. If the SHOWSTAR option is used, an asterisk (*) replaces the first
or last character shown. If the embedded variable is set up to show right-most characters,
excess characters are truncated at the left end of the string and the asterisk (if used)
appears at the left. Otherwise, the right-most characters are truncated and the asterisk (if
used) appears at the right.

Literal strings are shown using the same rules as string tag values.

Time and date embedded variables

For embedded variables that show both the time and the date, a space is placed between
the time and date when the embedded variable is shown at run time.

Time and date formats

Time and date embedded variables use the time and date formats for the current
application language. For example, if you specify the short date format, at run time the
display uses the short date format that the application language uses.

For information about using multiple languages, see Chapter 12.

Advertising