SMC_NCDecoder very slow to decode lines

2024-08-23
2024-08-23
  • fabriciosegalin - 2024-08-23

    Does anyone know a way to load a CNC program from CNC Editor faster using SMC_NCDecoder?
    It takes around 7 seconds to load 34 lines of G code and this is a problem for repeating the CNC program.

     
  • tk096 - 2024-08-23

    Hi,

    you can call the decoder function block in a loop and/or decrease the task cycle interval of Task_PATH.

     

    Last edit: tk096 2024-08-23
  • Fless

    Fless - 2024-08-23

    Hi,

    I got good results with SMC_NCDecoder, SMC_CheckVelocities, etc. in a freewheeling task with lower priority (higher number).

    Still takes some time but I'm using many variables and loops in my g-code and more preprocessing like SMC_SmoothPath, SMC_LimitDynamics, SMC_CheckForLimits.

    PS: your buffer size seems a bit high for 34 lines of g-code

     

Log in to post a comment.