YOu have teh idea here is a excert from the Gcode program and the Section where teh Post is modified to add teh Oword. You add teh Post code to teh OnPenDown() section.
N6040 X1.0409 Y9.8085
N6050 G28.1 Z0.50
N6060 G92 Z0.0
N6070 G00 Z0.1370
N6080 G92 Z0.0
N6090 G00 Z0.1200
N6100 M03
N6110 G04 P0.3
o549
N6120 X1.0409 Y9.8085
N6130 G01 Z0.0800 F20
N6140 G02 X1.1015 Y9.9299 I0.0911 J0.0304 F130.0
N6150 G01 X1.1047 Y9.9303 F130
N6160 G02 X1.1475 Y9.9024 I-0.0008 J-0.0480 F130.0
N6170 G01 X1.1496 Y9.8986 F130
N6180 G02 X1.4537 Y9.2508 I-2.1754 J-1.4162 F130.0
function OnPenDown()
if(dist >= (refdistance/scale)) then
dist = 0
-- modaltext (" G00")
-- text(" Z")
-- number (pierceheight * scale, "0.0000")
-- eol()
post.ModalText(" G28.1 Z")
post.Number(zrefslowdown, "0.00")
post.Eol()
post.ModalText(" G92 Z0.0\n")
post.ModalText (" G00")
post.Text(" Z")
post.Number (switchoffset, "0.0000")
post.Eol()
post.ModalText(" G92 Z0.0\n")
post.ModalText (" G00")
post.Text(" Z")
post.Number (pierceHeight * scale, "0.0000")
post.Eol()
else
post.ModalText (" G00")
post.Text(" Z")
post.Number (pierceHeight * scale, "0.0000")
post.Eol()
end
if (preheat > 0) then
post.Text ("\n G04 P")
post.Number (preheat,"0.###")
post.Eol()
end
post.Text ("\n M03\n")
if (pierceDelay > 0) then
post.Text (" G04 P")
post.Number (pierceDelay,"0.###")
post.Eol()
end
if (string.find(operationName, _("Outside Offset") )) then
post.TextDirect("o549 \n")
post.Text (" X")
post.Number (Sline1,"0.0000")
post.Text(" Y")
post.Number (Sline2,"0.0000")
post.Eol()
end
end