Laser driver don't work with arc paths and only blinks

When I put the printer in laser mode, arm it with M3 S255 it only quickly blinks at the start of the move. I am not quite sure if it is supposed to be like this, but for cutting a tool path it's not quite that good.

Also I noted that it didn't work during Arc paths, I modified the code in commands.cpp to (around line 900 - 1000):

Changed it to:

//#if ARC_SUPPORT
    case 2: // CW Arc
    case 3: // CCW Arc MOTION_MODE_CW_ARC: case MOTION_MODE_CCW_ARC:
        processArc(com);

//MODIFIED Laser can also be used during ARCS
        #if defined(SUPPORT_LASER) && SUPPORT_LASER
            LaserDriver::laserOn = 1;
        #endif
        break;

Comments

  • I think you are right, but do not forget to close it at the end og G2/3. I have added it to the code, also untested.
  • Nice, where you keep the latest code? is it possible to test and contribute?
  • Latest is currently the work092 branch on github, but 0.92 in config tool is also always up to date, We do not change version for every tiny fix, only if we have some new features.
  • Nice thanks for the quick reaction, going to try it out and write perhaps some code to futher improve the laser tool!
Sign In or Register to comment.