robertspark wrote: ↑Fri Jan 25, 2019 2:49 pm
This modified code should do it:
(commented out 1 line)
Code: Select all
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(3 * scale, "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
end
okay, i'm stupid...
i gave you the wrong post processor... sorry
here is the right one:
this is the unchanged code with the problem:
N0010 (Filename: bijna.tap)
N0020 (Post processor: Mach3 plasma snippet Mod .035.scpost)
N0030 (Date: 26/01/2019)
N0040 G21 (Units: Metric)
N0050 G53 G90 G91.1 G40
N0060 F1
N0070 S500
N0080 (Part: New part)
N0090 (Operation: Outside Offset, Shape, T1: staal 45A finecut 2mm THC58 0,5 kerf)
N0100 M06 T1 F4800.0 (staal 45A finecut 2mm THC58 0,5 kerf)
N0110 G00 Z15.0000
N0120 X74.7709 Y50.9964
N0130 Z2.2500
N0140 G90F30
N0150 G28.1 Z0.50
N0160 G92 Z0
N0170 G0 z0.3500
N0180 G92 Z0
N0190 Z2.2500
N0200 M03
N0210 G01 X75.5209 Z1.5000 F80.0
N0220 X76.7709 F3840.0
N0230 G03 X76.7507 Y51.9962 I-24.7500 J0.0000
N0240 X76.2676 Y46.0304 I-24.7298 J-0.9997 F4800.0
N0250 X76.7507 Y51.9962 I-24.2467 J4.9661 F3120.0
N0260 X76.0854 Y52.6098 I-0.6395 J-0.0259
N0270 M05
N0280 G00 Z15.0000
N0290 X104.2709 Y50.9964
N0300 Z2.2500
N0310 G90F30
N0320 G28.1 Z0.50
N0330 G92 Z0
N0340 G0 z0.3500
N0350 G92 Z0
N0360 Z2.2500
N0370 M03
N0380 G01 X103.5209 Z1.5000 F80.0
N0390 X102.2709 F3840.0
N0400 G02 X102.2610 Y49.9965 I-50.2500 J0.0000
N0410 X102.0224 Y55.9882 I-50.2401 J0.9999 F4800.0
N0420 X102.2610 Y49.9965 I-50.0014 J-4.9918 F3120.0
N0430 G03 X102.8881 Y49.3439 I0.6399 J-0.0127
N0440 M05
N0450 G00 Z15.0000
N0460 G0x0y0 M05 M30
here is the code with the change:
N0010 (Filename: bijna.tap)
N0020 (Post processor: Mach3 plasma snippet Mod .035.scpost)
N0030 (Date: 26/01/2019)
N0040 G21 (Units: Metric)
N0050 G53 G90 G91.1 G40
N0060 F1
N0070 S500
N0080 (Part: New part)
N0090 (Operation: Outside Offset, Shape, T1: staal 45A finecut 2mm THC58 0,5 kerf)
N0100 M06 T1 F4800.0 (staal 45A finecut 2mm THC58 0,5 kerf)
N0110 G00 Z15.0000
N0120 X74.7709 Y50.9964
N0130 Z2.2500
N0140 G90F30
N0150 G28.1 Z3.00
N0170 G0 z0.3500
N0190 Z2.2500
N0200 M03
N0210 G01 X75.5209 Z1.5000 F80.0
N0220 X76.7709 F3840.0
N0230 G03 X76.7507 Y51.9962 I-24.7500 J0.0000
N0240 X76.2676 Y46.0304 I-24.7298 J-0.9997 F4800.0
N0250 X76.7507 Y51.9962 I-24.2467 J4.9661 F3120.0
N0260 X76.0854 Y52.6098 I-0.6395 J-0.0259
N0270 M05
N0280 G00 Z15.0000
N0290 X104.2709 Y50.9964
N0300 Z2.2500
N0310 G90F30
N0320 G28.1 Z3.00
N0340 G0 z0.3500
N0360 Z2.2500
N0370 M03
N0380 G01 X103.5209 Z1.5000 F80.0
N0390 X102.2709 F3840.0
N0400 G02 X102.2610 Y49.9965 I-50.2500 J0.0000
N0410 X102.0224 Y55.9882 I-50.2401 J0.9999 F4800.0
N0420 X102.2610 Y49.9965 I-50.0014 J-4.9918 F3120.0
N0430 G03 X102.8881 Y49.3439 I0.6399 J-0.0127
N0440 M05
N0450 G00 Z15.0000
N0460 G0x0y0 M05 M30
the problem lies in the lines 160 and 180.
if you could do the same to the post processor as you did to the other one,
that would be great.
sorry again.