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 |