Insert a string variable
Use the
String Variable
dialog box to enter a string variable in a text box. The string variable can be a tag name or placeholder that will change dynamically at runtime, or a literal string that will be shown as entered here.There are instances where you may want to embed string data within another string. For example, you may be connected to a controller that provides alarm text messages or event messages through a tag or data item. You may want to trap that text message and save it in a FactoryTalk View alarm message, to retain a history of controller issues. To do this, embed the data item within the alarm message text generated when the alarm is triggered. When the alarm occurs, the variable string is saved with the alarm text.
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 insert a string variable
- In theCaptionbox in a graphic object’sPropertiesdialog box, or in theMessagecolumn of theLocal Messages,Information Messages, orAlarm Setupeditor, clickInsert Variable.
- ClickString.
- Specify the options.
- ClickOK.TIP:To edit a String variable
- Double-click the string variable in the text box, or right-click and selectEdit Variable.
- In theString Variabledialog box, make the required changes and clickOK.
Provide Feedback