--- a/connectors/LPC/LPCAppObject.py Fri Jun 04 14:59:11 2010 +0200
+++ b/connectors/LPC/LPCAppObject.py Fri Jun 04 15:11:27 2010 +0200
@@ -45,11 +45,9 @@
def StartPLC(self, debug=False):
self.HandleSerialTransaction(STARTTransaction())
self.HandleSerialTransaction(STOPTransaction())
@@ -62,7 +60,6 @@
data = self.HandleSerialTransaction(GET_PLCIDTransaction())
class IEC_STRING(ctypes.Structure):
@@ -145,13 +142,13 @@
ctypes.POINTER(c_type)).contents))
offset += ctypes.sizeof(c_type)
- PLCprint("Debug error - " + iectype + " not supported !")
- PLCprint("Debug error - buffer too small !")
+ #PLCprint("Debug error - " + iectype + " not supported !") + #PLCprint("Debug error - buffer too small !") if offset and offset == size:
return self.PLCStatus, tick.value, res
- PLCprint("Debug error - wrong buffer unpack !")
+ #PLCprint("Debug error - wrong buffer unpack !") return self.PLCStatus, None, None