Author Topic: MessageDisplayBybit clear messages  (Read 6818 times)

abouhaa

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
MessageDisplayBybit clear messages
« 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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MessageDisplayBybit clear messages
« Reply #1 on: February 26, 2019, 09:29:15 AM »
When all bits are off, it will display what is in the DefaultMessage property.

abouhaa

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: MessageDisplayBybit clear messages
« Reply #2 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?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MessageDisplayBybit clear messages
« Reply #3 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.

abouhaa

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: MessageDisplayBybit clear messages
« Reply #4 on: February 26, 2019, 09:44:23 AM »
So am I able to clear messages of false bits in the messagelistbybit?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MessageDisplayBybit clear messages
« Reply #5 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.

abouhaa

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: MessageDisplayBybit clear messages
« Reply #6 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?

abouhaa

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: MessageDisplayBybit clear messages
« Reply #7 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");

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MessageDisplayBybit clear messages
« Reply #8 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

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: MessageDisplayBybit clear messages
« Reply #9 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.

« Last Edit: April 25, 2020, 01:45:36 AM by Godra »