EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Posted: 2021-11-04 08:06 AM . Last Modified: 2023-05-03 12:00 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-11-04 08:06 AM . Last Modified: 2023-05-03 12:00 AM
Hello everyone!
On Geoscada I created a script that moves a value from one variable to another.
it works.
always runs.
But now I would like to bind this script to a trigger.
For example when I press a button.
what's the best way to do it?
Thanks for the help!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-11-04 04:22 PM
Triggering for scripts can be a complex subject, not from a technical point of view more from a design point of view to make sure it can trigger properly and scripting is client side and only work when the mimic is displayed.
But in your case its pretty simple. Create a button on a mimic, right click, Pick Actions and in there you have an option to run script. You can have the script on the mimic (in a public sub), in a script library referenced from the mimic or just copy the script directly into the Pick Actions UI (although the latter isn't recommended from a config management point of view).
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-02-02 09:45 AM
Is this a script or logic? In Geo SCADA these are two different things. Logic is the server side logic objects that 'run all the time'.
You can setup a logic program to run on command by setting the program's interval to 0. Default is 1S. Then create a button with a pick action to run a method on the Logic object. The button will trigger the Execute method.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.