G65 Calling a macro program

  1. Home
  2. Knowledge Base
  3. Programming
  4. G Codes
  5. G65 Calling a macro program
  1. Home
  2. Knowledge Base
  3. Programming
  4. M Codes
  5. G65 Calling a macro program
  1. Home
  2. Knowledge Base
  3. Programming
  4. G65 Calling a macro program

G65- Calling a macro program. Same as M98 but we pass variables to a macro
sub-program. You would have to learn macro’s to make macro programs
but I have a macro for Peck Drilling you might want to use. Instead
of the G83 option.

Example for my peck drilling macro…

Z-AXIS ALL ARE IN RADIUS VALUE

G65 P8999 A.05 B.03 C.02 S0 R-.03 Z1. W.01 F.0005 D.5 E3.

X-AXIS A,B,C,U IN RADIUS VALUE S,R,X IN DIAMETER VALUE

G65 P8999 A.05 B.03 C.02 S1. R1.1 X.1 U.01 F8. D.5 E3.

A. FIRST PECK
B. SECOND PECK
C. THIRD AND ALL FINAL PECKS
S. START POINT
W/U. RETURN POINT (RAPID IN)
Z/X. ENDING Z POSITION OR X POSITION
R. RETREAT POINT (OUT OF HOLE)
F. FEED RATE
D. DWELL
E. DWELL EVERY ? PECKS

P8999 is the macro sub-program O8999 and the rest is information
passed to the macro to drill the hole.

Was this article helpful?

Related Articles