Author Topic: Messagelistbybit and messagelistbyvalue How to use these  (Read 1736 times)

Etten

  • Newbie
  • *
  • Posts: 10
    • View Profile
Messagelistbybit and messagelistbyvalue How to use these
« on: July 23, 2016, 03:17:24 PM »
I am newer to AHMI and don't exactly understand how to use the Messagelistbybit and messagelistbyvalue features trying to use this for an alarm list and need a step by step of how to use them i am using a micro800 series Allen Bradley PLC.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Messagelistbybit and messagelistbyvalue How to use these
« Reply #1 on: July 23, 2016, 03:41:39 PM »
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:
Code: [Select]
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

Etten

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Messagelistbybit and messagelistbyvalue How to use these
« Reply #2 on: July 26, 2016, 02:01:40 AM »
Thank you for the clarification.
Is there any way to display information like this from multiple addresses or bits in the same list?