Insert a numeric variable
Use the
Numeric Variable
dialog box to insert a numeric variable in a text box. The numeric variable can be a tag name or placeholder that will provide a value that will change dynamically at runtime, or it can be a literal number that will display as entered.There are many cases where you might want to show process data within a fixed string on an object. For example, you may want to show the current value of a setpoint in the caption of a numeric input enable button that edits the setpoint value. To do this, embed the setpoint's data item or tag in the caption property.
TIP:
Embedded variables are case sensitive, and must be in the proper format and syntax to work. If you make a mistake, your variable will be treated as a piece of text. Therefore, do not attempt to edit embedded variables manually. Use the
Insert Variable
and Edit variable
dialog boxes to avoid problems.To set up a numeric variable
- In theCaptionbox in a graphic object’sPropertiesdialog box, or in theMessagecolumn of theLocal Messages,Information Messages, orAlarm Setupeditor, clickInsert Variable.
- ClickNumeric.
- Specify the options.
- ClickOK.TIP:To edit a numeric variable
- Double-click the numeric variable in the text box, or right-click and selectEdit Variable.
- In theNumeric Variabledialog box, make the required changes and clickOK.
Provide Feedback