Hope everyone is well,
i have two drop down menus, one selects the variable name i want to write to and the other is the variable value, the first defaults to the first in the list, but the second i want to display the value from the variable, i cant figure out how this is done, any ideas would be great thank you.
You would use indirect binding on the second component. But it will be very complicated if the choices for the second component vary per variable allowed.
Hi Thanks for the relays. Sorry only new to ignition so didn't realy explain very well.
Dropdown one is set up as indirect, it selects different motors within a PLC eg motor 1 motor 2 motor 3. Then below the motors is some guages with RPM temp and so on for that motor set and these change based on the motor set selected. The second drop down sets the motor speed. 3 pre set mixing speeds 750 RPM 1500RPM 2000 RPM, so what I want to happen is when you select motor drop down the other drop down charges to the current RPM setting.
If you've got the indirect tag binding setup correctly on the 2nd dropdown, you should correctly see the value of the selected motor in dropdown 1. Screenshots speak 1000 words
Hi everything is set up correctly from what I can see, dropdown 1 changes the variable / motor selection and Dropdown 2 sets the speed and writes to the PLC. No issues.
But when you change dropdown one the second dropdown where you set the RPM goes back to the placeholder text. Even though the Varable has RPM already set.
Nope because it all works.eg. you select motor set 3 from dropdown then set 750RPM from dropdown 2 this writes to the PLC no issues select motor 1 and the swap back straight back to motor 3 and it just displays the placeholder. Not the set value and 750rpm INT is still in the PLC.
Paste the JSON for your Dropdown2 options list so we can see what's going on.
Anyway, it doesn't sound like a good machine GUI. If anyone adds or sets a different RPM on the motor then your HMI will fail. Dropdowns are not usually used for industrial control user interfaces.