im-pro-at / cncgcodecontroller

CNC-GCode-Controller
MIT License
145 stars 59 forks source link

Setting spindle speed or feed rate removed as "command without any motion" #41

Closed Patronics closed 1 year ago

Patronics commented 4 years ago

For the (correct, and important) command, G00 S30000 CNCGcodeController removes it from the output, and gives the following explanation:

G00 S30000 ( RPM spindle speed. )
  Message: Command without any movment! 
  Type:    G0
  Parser:  G0 S30000 
  Contex:  axes=[0.0, 0.0, NaN, NaN], lastMovetype=UNKNOWN, time=0:00:00
  Execute: 
            --> G0 F100.0000

As a workaround, I'm setting the CNC/Spindle ON command to include the G0 S30000 command too, but this limits a given gcode file to only 1 speed, so is not a complete solution.