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

CNC - system goes to X=0 Y=0 before CNC file execution starts, how to avoid that?

peterned
2024-04-26
2024-04-30
  • peterned - 2024-04-26

    Hi,
    I have a XY system and use a CNC file to move it.
    Everything works OK, except for the following: when CNC execution starts, the system rushes at high speed to (X=0, Y=0) point, and only then goes to the first line of the CNC file.
    If one of the axes is near 0, the system jumps and immediately stops with an error.

    In the CNC file settings (screenshot attached) I specified low default values for speed/acceleration and a start position different from 0,0 - but all that is ignored.

    Any idea how to avoid that move to 0,0 ?
    Thanks.

     
  • gseidel - 2024-04-30

    Hi peterned,

    the start position given in the CNC properties is only used if you use the compile mode OutQueue.

    With compile mode SMC_CNC_REF, you need to provide the start position in the IEC application. The function block SMC_NCInterpreter has an input piStartPosition. You can initialize it with the output of the forward kinematic transormation FB for your machine. In your case probably SMC_TRAFOF_Gantry2.

    Best regards,

    Georg

     

Log in to post a comment.