diff -r 6e205c1f05a0 -r eee7625de1f7 py_ext/plc_python.c --- a/py_ext/plc_python.c Wed Aug 29 21:14:23 2012 +0200 +++ b/py_ext/plc_python.c Thu Mar 07 11:47:43 2013 +0900 @@ -152,7 +152,7 @@ } } -char* PythonIterator(char* result) +char* PythonIterator(char* result, void** id) { char* next_command; PYTHON_EVAL* data__; @@ -163,6 +163,7 @@ LockPython(); /* Get current FB */ data__ = EvalFBs[Current_Python_EvalFB]; + *id=data__; if(data__ && /* may be null at first run */ __GET_VAR(data__->STATE) == PYTHON_FB_PROCESSING){ /* some answer awaited*/ /* If result not None */