bitboxelectronics / R2C2_Firmware

R2C2 -- electronics for RepRap 3D printers (and others), CNC and other machines.
http://www.3dprinting-r2c2.com/
35 stars 34 forks source link

GCode default command #4

Open bobc opened 12 years ago

bobc commented 12 years ago

If a command line contains a valid word such as "X100" but no other G or M code, the GCode parser should implement the current modal command, e.g. G1. I think this used to work, but may have got broken somewhere.

Generally 3d printer software does not generate such commands, but it is more common in CNC/CAM files.

From "The NIST RS274NGC Interpreter - Version 3"

3.3.7 Commands and Machine Modes In RS274/NGC, many commands cause a machining center to change from one mode to another, and the mode stays active until some other command changes it implicitly or explicitly. Such commands are called “modal”. For example, if coolant is turned on, it stays on until it is explicitly turned off. The G codes for motion are also modal. If a G1 (straight move) command is given on one line, for example, it will be executed again on the next line if one or more axis words is available on the line, unless an explicit command is given on that next line using the axis words or cancelling motion.

casainho commented 12 years ago

I think it that is implemented it will not make a problem with current 3D Printer software -- which is important.