Author Topic: MessageListByBit  (Read 1357 times)

tamnguyen408

  • Newbie
  • *
  • Posts: 14
    • View Profile
MessageListByBit
« on: May 06, 2016, 08:58:22 AM »
Hi,

I have a messagelistbybit work properly; I am able to toggle bit and display to the list. However, I cleared all messages and toggle the same bit. It won't show in the message list anymore unless I toggle another bit then previous bit working again. Please! help
Thanks,

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: MessageListByBit
« Reply #1 on: May 10, 2016, 10:15:51 PM »
I gave this try and it worked as expected. This is how I tested it:

- Add up 3 messages for bits 0,1,and 2
- Set PLCAddressValue to my 40001 (using Modbus)
- Added a button with the click event code set to MessageListByBit1.Items.Clear()
- Run the application
- Set 40001 to 1 and the first message appeared in the list
- Set 40001 back to 0
- Click the button to clear the list box
- Set 40001 to 1 and the first message added back to the box

tamnguyen408

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: MessageListByBit
« Reply #2 on: May 13, 2016, 05:30:46 PM »
Thank you very much