AdvancedHMI Software

General Category => Additional Components => Topic started by: abouhaa on February 26, 2019, 08:16:00 AM

Title: MessageDisplayBybit clear messages
Post by: abouhaa on February 26, 2019, 08:16:00 AM
Hi,

How can I clear the message shown in MessageDisplaybybit when the corresponding bit is cleared.

Thanks.
Title: Re: MessageDisplayBybit clear messages
Post by: Archie on February 26, 2019, 09:29:15 AM
When all bits are off, it will display what is in the DefaultMessage property.
Title: Re: MessageDisplayBybit clear messages
Post by: abouhaa on February 26, 2019, 09:39:28 AM
Am I able to show multiple messages at the same time?
What about using messagelistbybit? Can I use that to display different messages based on different bits and have the messages clear if the bit goes inactive?
Title: Re: MessageDisplayBybit clear messages
Post by: Archie on February 26, 2019, 09:42:41 AM
Am I able to show multiple messages at the same time?
What about using messagelistbybit? Can I use that to display different messages based on different bits and have the messages clear if the bit goes inactive?
The MessageDisplayByBit shows one message at a time, but rotates through all the messages for each active bit based on the display time, which is default of 3 seconds.

The MessageListByBit adds the to a running list and time stamps them.
Title: Re: MessageDisplayBybit clear messages
Post by: abouhaa on February 26, 2019, 09:44:23 AM
So am I able to clear messages of false bits in the messagelistbybit?
Title: Re: MessageDisplayBybit clear messages
Post by: Archie on February 26, 2019, 09:46:13 AM
So am I able to clear messages of false bits in the messagelistbybit?
No. They stay in the list, but scroll up to eventually be removed when the list reaches its maximum items.
Title: Re: MessageDisplayBybit clear messages
Post by: abouhaa on February 26, 2019, 09:49:38 AM
Any other way of showing a list of messages for active bits only?
Or maybe having a separate bit to clear all messages?
Title: Re: MessageDisplayBybit clear messages
Post by: abouhaa on February 26, 2019, 09:54:31 AM
Side question: Can I do somethign like this on a serial driver?
serialDF1forSLCMicroCom1.Read("B3:8/15");
Title: Re: MessageDisplayBybit clear messages
Post by: Archie on February 26, 2019, 10:40:02 AM
Any other way of showing a list of messages for active bits only?
Or maybe having a separate bit to clear all messages?
1) Add a FlowLayoutPanel
2) Add a BasicLabel into the FlowLayoutPanel
3) Set Value to the message
4) Set PLCAddressVisible to the bit address
5) Repeat steps 2-4 for each message
Title: Re: MessageDisplayBybit clear messages
Post by: Godra on April 25, 2020, 01:29:08 AM
The modified version of the MessageListByBit control allows clearing of the messages as the bits change:

https://www.advancedhmi.com/forum/index.php?topic=2627.msg15769#msg15769

Intended for Modbus communication.