Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84705members
354089posts

Run scripts with a trigger.

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Valentino
Ensign Ensign
Ensign
0 Likes
2
448

Run scripts with a trigger.

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!

 

 

2 Replies 2
AdamWoodland
Commander Commander
Commander
0 Likes
1
437

Re: Run scripts with a trigger.

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).

du5tin
Lieutenant
Lieutenant
0 Likes
0
309

Re: Run scripts with a trigger.

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.