Init code before first job for CNC/Laser combinations

I have a SainSmart 3030 with both CNC router and laser module. After fixing some hickups with CNC processing I returned to the laser and found very strange behaviour which turned out to be due to

  • laser mode turned off ($30) → “spindle” remains on which means laser is cutting also the travel paths
  • work coordinate system settings G92, G54 etc. → inconsistent behavior of displayed and moved-to coordinates, e.g. after homing I couldn’t return to the origin

I tried to add some resetting code in the prepend Gcode section, but that seems to break even more things. I end up with typing 4 or 5 commands into the command prompt to set up the machine once. A “before first job” setup code would be a nice feature (in the linux version). I think there is no such feature yet?

There is, more or less. Just create a macro button in the console window that contains your laser setup code. Add another one that turns them back when you want to return to CNC mode.

What did you expect? That’s exactly what it is made for. Turn laser mode on to make the laser go off during travel paths.

Another addition: please note that the origin button is only used for user origins set in LB move window and “user origin” positioning mode. Do not expect to move it to positions saved manually in different coordinate systems. Those are not used.