runtime/PLCObject.py
changeset 1288 adc79fc44079
parent 1156 9708ed2a4ac2
child 1433 4a45f6642523
--- a/runtime/PLCObject.py	Wed Aug 28 11:43:51 2013 +0200
+++ b/runtime/PLCObject.py	Thu Sep 26 20:47:36 2013 +0900
@@ -329,7 +329,7 @@
                 if ccmd is None or ccmd!=cmd:
                     AST = compile(cmd, '<plc>', 'eval')
                     compile_cache[FBID]=(cmd,AST)
-                result,exp = self.evaluator(eval,cmd,self.python_runtime_vars)
+                result,exp = self.evaluator(eval,AST,self.python_runtime_vars)
                 if exp is not None: 
                     res = "#EXCEPTION : "+str(exp[1])
                     self.LogMessage(1,('PyEval@0x%x(Code="%s") Exception "%s"')%(FBID,cmd,