py_ext/plc_python.c
changeset 1470 f65ab5ff91d1
parent 1469 86797748c2a2
parent 1410 0d34b69cc9b5
child 2272 28b0a783975e
equal deleted inserted replaced
1469:86797748c2a2 1470:f65ab5ff91d1
   117 			if(!poll)
   117 			if(!poll)
   118 			    __SET_VAR(data__->, TRIGGED,, 0);
   118 			    __SET_VAR(data__->, TRIGGED,, 0);
   119 			/*printf("__PythonEvalFB pop %%d - %%*s\n",Current_PLC_EvalFB, data__->BUFFER.len, data__->BUFFER.body);*/
   119 			/*printf("__PythonEvalFB pop %%d - %%*s\n",Current_PLC_EvalFB, data__->BUFFER.len, data__->BUFFER.body);*/
   120 		}else if(poll){
   120 		}else if(poll){
   121 			/* when in polling, no answer == ack down */
   121 			/* when in polling, no answer == ack down */
   122 		    __SET_VAR(data__->, ACK., 0);
   122 		    __SET_VAR(data__->, ACK,, 0);
   123 		}
   123 		}
   124 		/* got the order to act ?*/
   124 		/* got the order to act ?*/
   125 		if(__GET_VAR(data__->TRIGGED) == 1 &&
   125 		if(__GET_VAR(data__->TRIGGED) == 1 &&
   126 		   /* and not already being processed */
   126 		   /* and not already being processed */
   127 		   __GET_VAR(data__->STATE) == PYTHON_FB_FREE)
   127 		   __GET_VAR(data__->STATE) == PYTHON_FB_FREE)