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
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
Released for: Schneider Electric Philippines


Need help?
Product Selector
Quickly and easily find the right products and accessories for your applications.
Get a Quote
Start your sales inquiry online and an expert will connect with you.
Where to buy?
Easily find the nearest Schneider Electric distributor in your location.
Help Center
Find support resources for all your needs, in one place.