Jak vám dnes můžeme pomoci?

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

Users can trigger methods associated to objects using a 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. This 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 of 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 Česká republika

Zjistěte více

Zjistěte více

Potřebujete pomoc?

Nástroj pro výběr produktů

Rychle a snadno vyhledávejte správné produkty a příslušenství pro vaše aplikace.

Získejte nabídku

Poptejte se nás online a náš lokální specialista se s vámi spojí!

Kde nakoupit?

Jednoduše najděte nejbližšího distributora výrobků Schneider Electric ve vašem okolí.

Centrum nápovědy

Zdroje podpory pro všechny své potřeby najdete na jednom místě.