Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

How to record positions in softmotion's x-y axis by X-Y chart of package

Monica
2018-11-20
2018-12-04
  • Monica - 2018-11-20

    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

    IMG: 2018

    IMG: 2018

    IMG: 2018

    IMG: 2018

    IMG: 2018

    IMG: 2018

    XYChartExample_change.project [328.19 KiB]

     
  • dFx

    dFx - 2018-11-21

    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.

     
  • Monica - 2018-12-04

    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?

    IMG: 2018

    IMG: 2018

     
  • Monica - 2018-12-04

    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 ><

     

Log in to post a comment.