AdvancedHMI Software
General Category => Support Questions => Topic started by: cm6760 on July 22, 2015, 02:23:39 PM
-
Is there a way on the MessageListByBit to only display the messages associated to the active bits on each refresh? Right now it seems that once the bit goes high, the message displays forever, even though the bit went low again. It like it work the same as the MessageDisplayByBit, but in a vertical list.
Thanks for any suggestions.
-
The closest you can get it to set RemoveDuplicateMessages to True.
-
Ok, thanks for the info.. Is there an event or method that I could call to clear the messagelist prior to the control updating? This way the list would start blank at every update and only show the bits that are active?
-
You could add a DataSubscriber, set the PCLAddressValue to what you are using with the MessageList, then double click the DataSubscriber to get to the DataChanged event handler. Then add this code:
MessageListByBit1.Items.Clear
MessageListByBit1.Value=e.values(0)
Be sure not to be anything in the PLCAddressValue property of the message list.
-
MessageListByBit1.Items.Clear()
Place inside of another function. I have it inside a button that resets a fault on my PLC. You could run it through a timer or a plc value change, whatever you like. As long as the input value no longer remains and there is not an active message, it clears it. The whole section is as follows:
Private Sub BasicButton5_Click(sender As Object, e As EventArgs) Handles BasicButton5.Click
MessageListByBit2.Items.Clear()
End Sub