Currently when I make a rapid move, the X, Y and Z move all at the same time. What I’d like to do is retact the Z frist, then rapid the X and Y. At one point it was working this way, but through monkeying with my post, I must have broken it. How would I modify my current OnRapid() function to make the Z retract first?
Thanks
function OnRapid()
if(endZ < currentZ) then return end
dist = dist + math.hypot(endX-cX , endY-cY)
cX = endX
cY = endY
post.Text (" G00")
post.ModalNumber (" X", endX * scale, “0.0000”)
post.ModalNumber (" Y", endY * scale, “0.0000”)
post.ModalNumber (" Z", endZ * scale, “0.0000”)
post.Eol()
That isn’t a post problem. Which rapid moves are a problem? Is it the first move or all of them?
Just the first rapid. See the code below…
N0000 (Filename: 8f-logo.tap)
N0010 (Post processor: TruCutCNC - Plasma.scpost)
N0020 (Date: 12/7/2011)
N0030 G20 (Units: Inches)
N0040 G53 G90 G40 G91.1 M7 M1100
N0050 F1
N0060 (Part: 8f-logo)
N0070 (Operation: Inside Offset, INSIDE, T113: 1/8" Steel, 40A)
N0080 M06 T113 (1/8" Steel, 40A)
First rapid from 0,0 to program start
N0090 G00 X48.1909 Y6.9933 Z0.3750
N0100 (Operation: Reference Torch)
N0110 M1101
N0120 M03
N0130 G03 X48.1909 Y6.8575 I0.0679 J-0.0679 F70.0
N0140 X48.1909 Y6.8575 I0.0000 J0.0918
N0150 X48.1909 Y6.9933 I-0.0679 J0.0679
N0160 M05
Next rapid to next start point
N0170 G00 Z0.3750
N0180 G00 X46.3632