我们今天能为您提供什么帮助?

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

施耐德電機Taiwan

探索更多

產品:

探索更多

產品:

需要協助?

產品選型工具

快速輕鬆地為您的應用找到合適的產品和附件。

取得報價

立即線上提交您的銷售需求,專業團隊將主動聯繫您。

購買地點

輕鬆在您所在地區找到最近的施耐德電機經銷商。

支援中心

在同一位置找到滿足您所有需求的支援資源。