connectors/PYRO/__init__.py
changeset 906 de452d65865c
parent 763 c1104099c151
child 917 401e44bae7c0
equal deleted inserted replaced
905:eaa1d3a4b52b 906:de452d65865c
   138             for safe use in from debug thread, must use the copy
   138             for safe use in from debug thread, must use the copy
   139             """
   139             """
   140             if self.RemotePLCObjectProxyCopy is None:
   140             if self.RemotePLCObjectProxyCopy is None:
   141                 self.RemotePLCObjectProxyCopy = copy.copy(confnodesroot._connector.GetPyroProxy())
   141                 self.RemotePLCObjectProxyCopy = copy.copy(confnodesroot._connector.GetPyroProxy())
   142             return self.RemotePLCObjectProxyCopy.GetTraceVariables()
   142             return self.RemotePLCObjectProxyCopy.GetTraceVariables()
   143         GetTraceVariables = PyroCatcher(_PyroGetTraceVariables,("Broken",None,None))
   143         GetTraceVariables = PyroCatcher(_PyroGetTraceVariables,("Broken",-1,None,None))
   144 
   144 
   145         def _PyroGetPLCstatus(self):
   145         def _PyroGetPLCstatus(self):
   146             return RemotePLCObjectProxy.GetPLCstatus()
   146             return RemotePLCObjectProxy.GetPLCstatus()
   147         GetPLCstatus = PyroCatcher(_PyroGetPLCstatus, "Broken")
   147         GetPLCstatus = PyroCatcher(_PyroGetPLCstatus, ("Broken",-1))
   148 
   148 
   149         def _PyroRemoteExec(self, script, **kwargs):
   149         def _PyroRemoteExec(self, script, **kwargs):
   150             return RemotePLCObjectProxy.RemoteExec(script, **kwargs)
   150             return RemotePLCObjectProxy.RemoteExec(script, **kwargs)
   151         RemoteExec = PyroCatcher(_PyroRemoteExec, (-1, "RemoteExec script failed!"))
   151         RemoteExec = PyroCatcher(_PyroRemoteExec, (-1, "RemoteExec script failed!"))
   152 
   152