Dropdown control issues

Hi all,

the dropdown control is driving me crazy. I'm trying to do something simple.
I have a dropdown control into a POPUP windows with this dataset:
AUTO - 0
MANUAL - 1

I have set the event handler propertyChange to change a manual/auto tag into my PLC (an S7-1200)

So, NOBODY is changing the manual/auto tag into the plc, only this dropdown control

OK, I select "AUTO" and my tag value is 0. Great
If i select "MANUAL", my PLC tag changes to 1. Amazing

I close the POPUP window and my PLC tag changes to 0. What?!?

I tested the eventhandler mouse click but the value changes when i close the window. The window doesnt have any script.

What can i do?

Thanks

Is this vision or perspective and can you share your config/code? There really isnt enough here for us to go on.

2 Likes

This functionally should not be scripted. You need a bidirectional tag binding on your dropdown's selected value parameter.