Hello.

I am making a new post processor for the Planet CNC TNG software. I've had some issues with the post processor that is supplied with the software.

I have added the post processor and a test file from sheetcam with G code.

Can anyone tell me if this G code would work ?

N0070G00 X6.3880 Y6.3880
N0080 M08
N0090 M11P0 G38.2 Z-1000 F1250
N0100 G91 G01 Z-1.6
N0110 M11P1 G90
N0120 M72
N0130 M71
N0140 G00 Z3.8000
N0150 M03
N0160G04 P0.2
N0170G01 Z1.5000 F2500.0



The post is with Floating head, but I am unsure if the code in here is correct. Any ideas?

Also in the post processor I tried adding settings in the start like "Switchoffset and Workoffsetspeed" and then using the code below:

--Put your switch offset value here in MILLIMETRES
switchOffset = 2.5

post.Text (" M11P0 G38.2 Z-1000 F#<Workoffsetspeed>\n")
post.Text (" G91 G01 Z[+#<Switchoffset>]\n")



But this did not work. Any tips here? I would like to make it so people can add settings in the beginning of the pp that will be referenced in the code itself. I would also like to add "reference distance" if the torch has travelled x amount.