So I modified it to always output the G0 or G1 as needed. If it is called with the same N, it simply don't output the GN. I found that using gMotionModal.format(N) is the reason for this. I figured that it needs to start with G, M or T to be acceptable - seems there are controllers which does not need it, or maybe a gcode sender that can handle it. I was not yet able to post the cps file on a more permanent location (the cps file format is not supported here). Does the RepRapFirmware understand this? I just want to know it is safe before trying it. For example, the following is output from it: G0 X131.51 Y-5.767Īs you can see, the lines simply continue, specifying new X, Y or Z positions for the previous command (either G0 or G1). This is also not yet tested on my machine.įor some reason it does not always produce a G0 or G1 before the position. I force it to use T0, and instead adds a little bit more complicated script: It starts by stopping the spindle (at the current working coordinate origin), then using command M291, asks for the new tool to be inserted (press OK to continue), now it asks you to prepare for probing (again using M291, OK to continue), performs the probe (G30) and finally requests you to remove the probing gear (again M291, OK to continue) before continuing with the next section.Ĭurrently it does not yet support arcs, though that is on my todo list.
I use a numbering scheme for my tools (allowing me to label each tool's storage location), but the machine does not need to know that. It started by using the tool number as defined in the tool library, for example it would have "T210" to change to tool number 210 in the library. I know brackets are acceptable, but in the other gcode I have read, a semi-colon is the start of a comment, so to make it easier on myself. Use " " for Comment starts instead of brackets.The reprap version sometimes produced 3x G28 commands in a few lines, which is simply not needed. The reprap version sometimes combined a few commands into a single line (for example: "G28 G91 Z0" as a single line). I have taken the reprap version and modified it to produce output that is more like I want it: The grbl version was not good and the reprap version's gcode does not look very standard. I have looked for a Duet compatible CNC Postprocessor for a while now, and I am not happy with the ones I found.