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
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
게시 대상: 슈나이더 일렉트릭 Korea


도움이 필요하신가요?
제품 선택기
애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.
견적 받기
영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.
구매처
해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.
지원 센터
한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.