Use expressions in the Command line
You can set the value of an analog, digital, or string tag using the equal command.
The syntax for the equal command is:
[
tag_name
]=[expression
]where
[
tag_name
] is the name of the tag that stores the result of the expression.[
expression
] is a tag name or a more complex expression.For example,
tag_1=tag_2 + tag_3
.Remarks
- If you have HMI tag names that contain an area or dashes, or that begin with a number, enclose them in curly brackets { } when you use them in the expression. This distinguishes the characters in the name from the characters in the expression.
- If you are going to use direct references to non-HMI tags in an expression, the tag names must be enclosed in curly brackets, for example, {Non-HMI tag}.
Provide Feedback