MessageListByValue:
- Add a MessageListByValue to the form
- Set the PLCAddressValue property to point to an integer value that will select a message number to display
- In the Messages property, click the ellipsis button to open a window for adding messages
- Click the Add button
- Set the Value to which this message represents
- Set the Message to display
- Repeat the above 3 steps for all of the messages
- Click the OK to close and save the messages
- Set MessageNumberToIgnore property for the integer value that represents "No Messages"
- You may also want to set ShowMessageNumber, ShowTimeStamp, and RemoveDuplicateMessages properties
- Run the application
- As your integer value changes, the corresponding message will be added to the list
There is another option for adding messages using an INI type file:
- In Solution Explorer, right click the AdvancedHMI project and select Add->New Item
- From the list, select Text File and give the file a name such as Alarms.txt
- Add messages to the file in this format:
1,Motor Overloaded
2,UnderLayer Side Saftey Door Open -OR- Material Choke in Screw Feed
3,UL Carrier Alarm
4,FM Carrier Alarm
5,Poke or Level Alarm
6,Auto Checker Alarm
7,Press Alarm
8,FM Side Safety Door Open
10,Control Panel or Reject Mix Door Open
14,Feed System Alarm
- In Solution Explorer, click once on the text file created to select it
- In the Properties Windows, set Copy To Output Directory to Copy If Newer
- On the form design view, select the MessageDisplayByValue
- In the Properties Window, set IniFileName to the name of the text file, such as Alarms.txt