How to input G210 Drill Toolpath?

How to input G210 Drill Toolpath?

thaont.cnc
Advocate Advocate
574 Views
2 Replies
Message 1 of 3

How to input G210 Drill Toolpath?

thaont.cnc
Advocate
Advocate

I want to change post processor for Drill Toolpath

%
O0123 (TEST DRILL)
(T1 D=8. CR=0. TAPER=118DEG - ZMIN=-20. - DRILL)
N10 G90 G94 G17 G49 G40 G80
N15 G21
N20 G28 G91 Z0.
N25 G90

(DRILL1)
N30 T1 M06
N35 S5000 M03
N40 G54
N45 M08
N55 G00 X36.188 Y24.93
N60 G43 Z15. H01
N70 G00 Z5.
N75 G98 G83 X36.188 Y24.93 Z-20. R5. Q2. F1000.
N80 X16.941 Y24.93
N85 X52.477 Y24.93
N90 G80
N95 Z15.

N105 M09
N110 G28 G91 Z0.
N115 G49
N120 G28 X0. Y0.
N125 M30
%

Now, I want to change

%
O0123 (TEST DRILL)
(T1 D=8. CR=0. TAPER=118DEG - ZMIN=-20. - DRILL)
N10 G90 G94 G17 G49 G40 G80
N15 G21
N20 G28 G91 Z0.
N25 G90

(DRILL1)
N30 T1 M06
N35 S5000 M03
N40 G54
N45 M08
N55 G00 X36.188 Y24.93
N60 G43 Z15. H01
N70 G00 Z5.
N75 G98 G83 G210 X36.188 Y24.93 Z-20. R5. Q2. F1000.
N80 G210 X16.941 Y24.93
N85 G210 X52.477 Y24.93
N90 G80
N95 Z15.

N105 M09
N110 G28 G91 Z0.
N115 G49
N120 G28 X0. Y0.
N125 M30
%

0 Likes
575 Views
2 Replies
Replies (2)
Message 2 of 3

bob.schultz
Alumni
Alumni

You can output the G210 in your deep drilling cycle blocks by modifying the following code.

 

First, find the following code in the onCyclePoint function and make the change marked in red.

case "deep-drilling":
      if (P > 0) {
        expandCyclePoint(x, y, z);
      } else {
        writeBlock(
          gRetractModal.format(98), gCycleModal.format(83), gFormat.format(210),
          getCommonCycle(x, y, z, cycle.retract, cycle.clearance),
          "Q" + xyzFormat.format(cycle.incrementalDepth),
          // conditional(P > 0, "P" + milliFormat.format(P)),
          feedOutput.format(F)
        );
      }
      break;

Next, at the end of the onCyclePoint function make the following change.

      writeBlock(conditional(cycleType == "deep-drilling", gFormat.format(210)), xOutput.format(x), yOutput.format(y), zOutput.format(z));
    }
  }
}

This will give you the output you are looking for.



Bob Schultz
Sr. Post Processor Developer

0 Likes
Message 3 of 3

thaont.cnc
Advocate
Advocate

Thank you very much!

 

0 Likes