Toggle bit based on any event occurence in a window

I have a popup window with various containers and components that control a remote site. Whenever a setpoint or bit is I changed on SCADA, I need to toggle a “Write to remote PLC” bit. Is there a way to do this using the “event” object or some other means?

Yes, you can do it with a simple tag change script on the gateway. So when you write to the setpoint can toggle the “Write to remote PLC”. Take a look at tag change scripts here:

inductiveautomation.com/supp … cripts.htm

Make sure it is a gateway tag change so it only happens in one location. Your script would look something like:value = newValue.value if value == 1: system.tag.writeToTag("Another/Tag/Path", AnotherValue)