Kang
Dear sir
 
We are using the openplc editor with live debug feature, and I found that the live debug variable can not monitor the value from array or structure data type in PLC program.
 
And we are doing the research on how to achieve array and structure data monitoring in editor python source code, we are wondering is there any limitation or barrier to achieve this feature? Or why the editor does not support this feature?
Reply 0 0
Kang
And we found that the reason why the editor can not monitor the structure or array variable is that the iec2c compiler did not generate the structure or array variable description in VARIABLES.csv, is it correct?
 
So the first step for us would be change the iec2c compiler's source code to generate the structure variable in VARIABLES.csv?
Reply 0 0
thiagoralves
Yes, there are a couple things that need to be changed to provide support for array and structure elements on the debugger, beginning with the MatIEC compiler (as you initially pointed out), and going through the runtime, the debugger C code, the debugger Py code and finally the editor. This is definitely a task that will require some significant work and investigation.
 
The good news is that we are already working on it for the OpenPLC Editor v4. 🙂 We've managed to add support for structures on the low level code and now we are working on the arrays part. We still need to implement the debugger on the editor (the UI frontend portion), so even though the functionality is partially working, you can't use it on the editor yet. It will be a couple months until we have the debugger fully implemented on the editor. Stay tuned.
Reply 1 0
Reply