Use expressions, Set minimum and maximum values – Rockwell Automation FactoryTalk View Machine Edition Users Guide User Manual

Page 464

Advertising
background image

F

ACTORY

T

ALK

V

IEW

M

ACHINE

E

DITION

U

SER

S

G

UIDE

22-6

• •

To create a tag placeholder

In the Expression box, type the cross-hatch character followed by a number (no space
in between). For example, #1.

Use expressions

Many types of animation can be achieved using expressions. You can use expressions
containing tag values, constants, mathematical equations, security functions, and if-then-
else logic. A tag name or tag placeholder can be included as part of an expression, or it
can stand alone as the entire expression.

For more information about expressions, see Chapter 23.

Set minimum and maximum values

Many types of animation require a minimum and maximum range for the tag or
expression. These values determine the start and end points for a range of motion.

For example, if you specify a minimum of 0 and a maximum of 100, the object will not
react to values outside of this range. So, even if the expression has a value of 200, the
object does not change from its “At maximum” position.

When setting up animation, select one of these methods for calculating the minimum and
maximum values:

Use tag’s min and max property values—select this method to use the minimum and
maximum values of the first HMI tag in the expression. If more than one HMI tag is
used in the expression, the first HMI tag’s minimum and maximum values are used.

For analog HMI tags, the values are taken from the Minimum and Maximum boxes in
the Tags editor. For digital tags, the minimum is 0 and the maximum is 1.

Use constant—select this method to use numeric constants. Type the minimum and
maximum values in the boxes.

Read from tags—select this method to read two tags’ values to determine the
minimum and maximum values. Type the tag names in the boxes, or click the Browse
buttons to open the Tag Browser and select the tags.

If you use this method, the tags are read when the graphic display opens. Their values
at that time are used for the minimum and maximum values. The tags are not read
again after this.

Browse button

Advertising