After a frustrating day of troubleshooting another company's work, I'm down to one thing that doesn't seem to work. Scripting in Graphics Studio isn't my strongest area.
The ProPlus and the Operator stations each have their own Layout defined. Within the first two Operator Stations' Layouts, there's an Interaction Timer defined with the following script:
if (DLSYS.CondRead("THISUSER/UNACKCNT.CV",0) > 0) { DLSYS.WriteAsync("DLSYS_TEST/ALARM_ACTIVE.CV",true); }
(There's also another timer to do the opposite. When UNACKCNT == 0, write false.)
DLSYS_TEST/ALARM_ACTIVE.CV never changes in the controller's module even though I've created a test display to verify that the first tag is updating when the unacknowledged alarms count goes up and down. I can write to the controller tag with a datalink object (numeric and checkbox), but the script in the Interaction Timer won't write to it.
I considered that maybe the two workstations were interfering with each other (one is 200 ms update, the other is 1000 ms), so I changed the first one to FALSE for the Timer, but no difference.
Any feedback/suggestions on scripts writing to a control module tag from a Layout Interaction Timer would be appreciated. (Online Help and BOL were thin on the knowledge I needed.)
In reply to Matt Stoner:
Andre Dicaire