Join us today!
[Solved] Combobox Issues
All,
I am having issues with implementing a Combobox on a Content area in a TwinCAT HMI project. I am unsure as to what I am doing wrong, but I have a combobox where I select the color I want my car to be.
I have created data for the combobox as shown and data bound a mapped variable back in the PLC program:
It just does not change at all. I don't know if this has to do with the use of the combobox on a content panel instead of an actual view?
-Evan H.
In case you want to say thank you !)
We'd be very grateful if you could share this community with your colleagues and friends. You can also buy us a coffee to keep us fueled 😊 This is the best way to say thank you to this project and support your community.
twinControls - https://twincontrols.com/
@twincontrols I tried your suggestion but it did not work. Also, in my program SelectedValue is a STRING. Is that going to work with an integer type. In your example, you use an INT, in mine I use a UDINT.
What is weird is that if I make any change to the Action of the Controls on the Combobox, it will write to the variable in the PLC program in that one instance. Once I leave that content and go to a different content view in the HMI program, then come back it does not work anymore.
I am going to make a whole new program and try again.
-- attachment is not available --
Okay I now have it working. I am not sure what was wrong with my original. I know that in my list I set the SelectedValue data type to a STRING instead of an INT, so maybe that is why, but again I don't know for sure.
Thanks again for all the help, Ilyas.
-Evan H.
- 17 Forums
- 267 Topics
- 942 Posts
- 1 Online
- 722 Members