Author Topic: Using checkboxes  (Read 2117 times)

StefanA

  • Newbie
  • *
  • Posts: 33
    • View Profile
Using checkboxes
« 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?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Using checkboxes
« Reply #1 on: January 24, 2016, 10:06:52 AM »
Which driver are you using?

StefanA

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Using checkboxes
« Reply #2 on: January 25, 2016, 01:24:31 PM »
I'm using modbusTCPcom1

Archie

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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Using checkboxes
« Reply #4 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)

StefanA

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Using checkboxes
« Reply #5 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?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Using checkboxes
« Reply #6 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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Using checkboxes
« Reply #7 on: January 26, 2016, 07:08:26 PM »
Attached is a version that will work with 3.99a