dFx hat geschrieben:
If you don't wait until saving next sample, your system got no time to move. So you log every value with the same.
just run your code in a fast cycle task, where j is incremented every cycle and not in your loop.
I use other method to record my position now...
It can record position except [0]'s position...
so u tell me other method that create new fast task and record position in the task can work in my condition?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Edwin Schwellinger hat geschrieben:
Hi,
you are using the interpolator and SoftMotion,
you could use SMC_GCodeViewer..
Guess this is covered by this example here: https://store.codesys.com/cnc-3d-editor ... escription
BR
Edwin
I see the 3D editor of the package, But it does't show position row data...
only run the path ><
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need help to record motor's x-y positions because trace only Y-axis
I installed X-Y chart of package ...
but happened some error
my array of x and y don't save any positions of G-code x-y
I used condition of xInterpolator (plc work flag) and SMC_Interpolator_0.bBusy(motion block's work flag)
I don't know what happen ?
please help me to solve the problem ... thanks a lot.
p.s. I take sample code from 2'nd application to change my code
XYChartExample_change.project [328.19 KiB]
If you don't wait until saving next sample, your system got no time to move. So you log every value with the same.
just run your code in a fast cycle task, where j is incremented every cycle and not in your loop.
Hi,
you are using the interpolator and SoftMotion,
you could use SMC_GCodeViewer..
Guess this is covered by this example here:
https://store.codesys.com/cnc-3d-editor ... escription
BR
Edwin
I use other method to record my position now...
It can record position except [0]'s position...
so u tell me other method that create new fast task and record position in the task can work in my condition?
I see the 3D editor of the package, But it does't show position row data...
only run the path ><