runtime/PLCObject.py
changeset 400 2c786431fe72
parent 398 31d08063b5d6
child 411 8261c8f1e365
equal deleted inserted replaced
399:77e23bf04c33 400:2c786431fe72
   377         """
   377         """
   378         if self.PLCStatus == "Started":
   378         if self.PLCStatus == "Started":
   379             self.PLClibraryLock.acquire()
   379             self.PLClibraryLock.acquire()
   380             tick = self._WaitDebugData()
   380             tick = self._WaitDebugData()
   381             #PLCprint("Debug tick : %d"%tick)
   381             #PLCprint("Debug tick : %d"%tick)
   382             if tick == -1:
   382             if tick == 2**32 - 1:
       
   383                 tick = -1
   383                 res = None
   384                 res = None
   384             else:
   385             else:
   385                 idx = ctypes.c_int()
   386                 idx = ctypes.c_int()
   386                 typename = ctypes.c_char_p()
   387                 typename = ctypes.c_char_p()
   387                 res = []
   388                 res = []