Pregunta

I am using Visilogic 9.4.0 to observe the register values of the PLC unit that resides in our robot. I would like to capture snapshots of the register values (particular the MB, MI, and ML registers) before and after a particular set of events.

Is there a way to export all the register values? CSV or Excel outputs would be ideal, but I am open to any reasonable result set. I can do a before and after comparison in the Visilogic IDE by manually inspecting the registers, but in this particular case I am chasing a bug that could be a result of just one of thousands of registers being different. It would be much easier to diff two CSV files than manually comparing thousands of individual registers.

¿Fue útil?

Solución

I think that the easiest way to achieve what you require would be to write the registers and bits that you require to a datatable, this could be done with a write column command and should not take up too much program. You could write to successive columns each time you wanted to capture the registers and then export the whole datatable to Excel via the 'Export to Excel' button.

Let me know if you need any more help.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top