fragmuffin / pygcode

GCODE Parser for Python
GNU General Public License v3.0
123 stars 38 forks source link

Useful M codes #11

Closed apshu closed 6 years ago

apshu commented 6 years ago

Hi Peter,

I like the pygcode very much. I am using your library to simulate GCode and create laser path optimization for my hobby machine. It works perfectly.

The simulation usability could be improved by adding some non LinuxCNC standard codes:

M18 (disable steppers, GCodeMovement will automatically reenable stepper) M80 (ATX power on) M81 (ATX power off)

If the ATX power is off, the GCode consumed will not cause any physical movement. A parameter in the Machine object reflecting the ATX power state would be useful.

The M18 is implementation specific, nevertheless a NoOP calss would be useful in the pygcode distribution eliminate ERROR on parsing.

Thanks for your time and great work done! Attila

fragmuffin commented 6 years ago

Hi @apshu ! I'm so glad you like it!

The simulation usability could be improved by adding some non LinuxCNC standard codes:

I couldn't agree more, this is the number 1 thing requested at this early stage, and has been raised in #9.

you can work around this limitation by defining your own gcodes in your script... I've just updated #9 with a workaround instruction.

If you don't mind me asking, what flavour of gcode does your hobby cnc machine take? I've got a list of dialects I want to target, if yours is a new one, I'd love to add it to the list.

I'll mark this issue as a duplicate of that one and close it, but please feel free to continue the discussion in #9 :+1:

Also, I won't get a chance this year to do this.. I'm quite busy on another project, but I want to fix it soon.