Robertspark wrote:A suggestion is to try this on a number of gcode files / formats as some do not repeat the modal commands like G1, G2 and G3, or the feedrate (or spindle speed) hence you'll just recover the X,Y,Z,I,J,K,A,B,C accordingly and you may need to use other uccnc fields to establish what the current modal commands actually are, current stored feed rate (or spindle speed) should you want to change and reset these later. As discussed earlier you'll also need to check out if the machine is in absolute or incremental mode { actualdistancemode } before moving it back to another location .
Rob, you're a legend.
Only just came back to playing with this, went offline for a while to do my truck test (passed ).
I completely overlooked the modal thing, and in the past it's gave me problems when a subsequent gcode line would only say for example Y1500 (where the hell is X ????). Because it was a straight line and X had not changed, Sheetcam did not put the X co-ord in the following gcode line.
I ended up changing the Sheetcam post processor to always put both X & Y co-ords in every line, even when one of them was the same, but that is something the code should check for.
Thanks very much,
Keith.