AdvancedHMI Software

General Category => Support Questions => Topic started by: StefanA on January 24, 2016, 04:55:40 AM

Title: Using checkboxes
Post by: StefanA on January 24, 2016, 04:55:40 AM
Hi,
I would like to use checkboxes to control modbus registers / coils as a alternative to buttons. E.g if checkbox1 checked then coil 00001 = 1. Is there a simple way to achieve this?
Title: Re: Using checkboxes
Post by: Archie on January 24, 2016, 10:06:52 AM
Which driver are you using?
Title: Re: Using checkboxes
Post by: StefanA on January 25, 2016, 01:24:31 PM
I'm using modbusTCPcom1
Title: Re: Using checkboxes
Post by: Archie on January 25, 2016, 03:15:22 PM
I replied before I read your full post, otherwise I would've figured out the answer to my own question from your address example. The reason I did ask that question was so I could give a less generic answer.

Let me come up with something and get back with an answer.
Title: Re: Using checkboxes
Post by: Archie on January 25, 2016, 06:55:54 PM
- Download the attached file
- In Solution Explorer, under the project AdvancedHMIControls, right click the \PurchasedControls folder
- Select Add Existing
- Browse to the CheckBox.vb file you  downloaded
- Build the Solution

You should now have a CheckBox in the ToolBox under the AdvancedHMIControls group (initially it may be at the bottom of the list)
Title: Re: Using checkboxes
Post by: StefanA on January 26, 2016, 01:39:14 PM
I'm not able to add the checkbox component. Errors are generated when I try to do that. I think I have the latest version of AHMI (3.99a) but I still use VB Express 2010. Can that be the problem?
Title: Re: Using checkboxes
Post by: Archie on January 26, 2016, 02:07:27 PM
What errors do you get? I created that on the next unreleased version so there may be some potential problems I overlooked.
Title: Re: Using checkboxes
Post by: Archie on January 26, 2016, 07:08:26 PM
Attached is a version that will work with 3.99a