Closed manu7irl closed 4 years ago
for: SET_GCODE_OFFSET Z_ADJUST you could use the babystep buttons too. i added it anyways.
good findings. M112 wow , how could i miss that. Emergency button does in any condition.
I added as you proposed, Good Job. pleas test latest master.
I asume we are done.
Hi Stephan, thanks for this amazing DWC translator, I got 2 issues that are actually related, adding manually every single command, needed is hard to do, could it be done simply by parsing all the commands klipper offers? And arranging the list in: 1- What Klipper command or Gcode command does not need ack, then load them in ack_needers array 2- What Klipper command or Gcode command needs to be used while printing, then load them in the midprint_allow array If not I was thinking about some sort of parsing from the printer.cfg file under:
This is what I tested now: added G92 E0, to reset the extruder
ack_needers = [ "G0", "G1", "G28", "G90", "G91", **"G92"**, "M0", "M24", "M25", "M83", "M84", "M104", "M112", "M117", "M140", "M141", "DUMP_TMC", "FIRMWARE_RESTART" "", "SET_PIN", "STEPPER_BUZZ", 'SET_GCODE_OFFSET Z_ADJUST' ]
And in midprint_allow, AFAIK, M290 Zxx.xx, for babystepping the Z axis offset, needs a macro to work on klipper.
and the command that Kevin uses instead is:
SET_GCODE_OFFSET Z_ADJUST=[your offset step] MOVE=1
Z_ADJUST ensure to make a relative move from previous position, and MOVE=1 make it running right after a move is finished.Also M290 allows in midprint could be used if added with a macro to also offsets x and y axis which in is not needed in midprint command, IMO.
More commands to the midprint_allow array: Set fan speed: M106 S
Turn fan off: M107
Emergency stop: M112
Get current position: M114
Get firmware version: M115
Set extruder temperature: M104 [T] [S]
Set acceleration: M204 S
Select tool: T
So it will look something like this:
thanks for making something so great, and reviewing my changes.