equal
deleted
inserted
replaced
106 TraceVariables = UnpackDebugBuffer(buff, size, self._Idxs) |
106 TraceVariables = UnpackDebugBuffer(buff, size, self._Idxs) |
107 if TraceVariables is not None: |
107 if TraceVariables is not None: |
108 return self.PLCStatus, tick.value, TraceVariables |
108 return self.PLCStatus, tick.value, TraceVariables |
109 return self.PLCStatus, None, [] |
109 return self.PLCStatus, None, [] |
110 |
110 |
|
111 def ResetLogCount(self): |
|
112 self.HandleSerialTransaction(RESET_LOGCOUNTSTransaction()) |
|
113 |
111 def GetLogMessage(self, level, msgid): |
114 def GetLogMessage(self, level, msgid): |
112 strbuf = self.HandleSerialTransaction(GET_LOGMSGTransaction(level, msgid)) |
115 strbuf = self.HandleSerialTransaction(GET_LOGMSGTransaction(level, msgid)) |
113 if strbuf is not None and len(strbuf) > 12: |
116 if strbuf is not None and len(strbuf) > 12: |
114 cbuf = ctypes.cast( |
117 cbuf = ctypes.cast( |
115 ctypes.c_char_p(strbuf[:12]), |
118 ctypes.c_char_p(strbuf[:12]), |