Here is a way for you to display the messages in the Alarm/Event control that
correspond to the integer values stored in a lookup table text file. Each time
the tag changes value, it causes a write to the Event log. The Event logger
first has to parse the expression configured between curly brackets in the
Message field for that tag.
The expression in the message field is actually a RunGlobalProcedureOnServer() function that calls a function named GetStringVal() and passes the current integer tag value, which represents the Column 1 entry in the lookup table file.
The return value of the GetStringVal() function is the string in column 2 from the lookup file IntStrings.txt which corresponds to the value of the integer in column 1. This file is placed in the root of the project folder.
The result is that at runtime, when the value of the integer tag IntDisp changes, the line is written to the Event log with the new tag value and the message from the file for that value.
You can configure the
Alarm/Event control to display just alarms, or just events, or alarms and
events.