Hur kan vi hjälpa dig idag?

How to trigger a method from an object using script in Geo SCADA

Users can trigger methods associated to objects by script. The script will be linked to a button using the “Script” Pick Action.
The first step is to get a “pointer” to the object that contains the method to be triggered. It can be done by using the “Server.FindObject” function. Then, the “ServerObject.Interface” to access the properties, methods and aggregates of the database item that is referenced by the ServerObject.
For example, the following script will trigger the “Execute” method from the Structured Text program called “Prog1” (the full name must be used as a parameter for the Server.FindObject function):

sub TriggerMethod()
set obj = Server.FindObject("Prog1")
obj.Interface.Execute
end sub

Schneider Electric Sverige

Utforska mer
Produkt:
Utforska mer
Produkt:

Behöver du hjälp?

Behöver du hjälp?

Produktväljare

Produktväljare

Hitta snabbt och enkelt rätt produkter och tillbehör för dina ändamål.

Begär en offert

Begär en offert

Ställ din fråga online så kontaktar vi dig.

Här köper du

Här köper du

Hitta enkelt närmaste Schneider Electric-distributör på din ort.

Hjälpcenter

Hjälpcenter

Hitta alla supportresurser som du behöver på ett ställe.

  • Produktdokumentation
  • Ladda ner programvara
  • Produktväljare
  • Byt ut eller ersätt produkt
  • Hjälp- och kontaktcenter
  • Här köper du
  • Begär en offert
  • Hitta våra kontor
  • Shop.se.com/se/sv nedstängning
  • Schneider Electrics community
  • Karriär
  • Företagsprofil
  • Rapportera ett tjänstefel
  • Tillgänglighet
  • Pressrum
  • Investerare
  • EcoStruxure
  • Sök jobb
  • Blogg
  • Sekretesspolicy
  • Cookie-information
  • Användarvillkor
  • Change your cookie settings