How the local message display works at runtime
Use a local message display to give the operator prompts about what to do next or information about a process.
At runtime the local message display shows one message at a time from the message file you assigned to the local message display. The application monitors the Value connection at the data source, and shows the message with the trigger value that matches the Value connection value.
TIP:
A message file contains a list of messages with a trigger value for each message. Set up the message files in the Local Messages editor.
Message File
When you open a graphic display at runtime, the application checks whether a valid local message file is referenced. If no message file is selected, or the selected message file is corrupt or does not exist, the following message shows on the local message display:
"Referenced Local Message file is missing or corrupt."
You can select a local message file at design time, or use a variable message file and select a local message file at runtime.
If the message is too long to fit in the list, the last shown character is replaced with an asterisk ( * ).
Value connection
When you open a graphic display at runtime, if the referenced local message file is valid, the application reads the Value connection value and updates the local message display object based on the value.
Special cases are handled in the following ways:
- If the Value tag or expression is unassigned, the local message display is filled with question marks ( ? ).
- The Value tag or expression is rounded to the nearest integer. If the value does not match any of the trigger values in the message file, the local message display is filled with question marks ( ? ).
- When the Value tag or expression's value is 0, the local message display is cleared.
Echo message
When the echo message function is used, the triggered message will be written to the string tag assigned to the Echo Message connection.
The echo message function works whether the local message display object is visible or hidden at runtime.
Provide Feedback