Subscribe to Blog
Email Address
 

Articles and tutorials dedicated to G-Code Milling and Turning programming. Canned Cycles, G and M Codes

Pages:(2) 1 [2]

Renishaw OTS tool probe cycle for HAAS can set both length and diameter offsets.

Too bad there is no choice: it only puts absolute measured diameter of the tool into D- diameter offset and makes wear offset=0

But if your programming is done with the center of the cutter, then you actually only need the difference between actual and programmed diameters of the tool.


I.E.: When probing 5/8Dia end mill, we get D=0.6248. You would normally have to subtract 5/8 from it and leave the -0.0002 difference.

But there is an easier way

Read More 


Thread Turning on Okuma

March 7, 2011, 1:26 pm by Eldar Gerfanov

G71 X Z A|I B D U H L E F J M Q

  • D=First Depth of Cut
  • U=Finish Depth of Cut
  • J=Number of threads at F
  • X=Target Depth (minor Dia of theread)
  • Z=Coord of end Point
  • A= Angle of thread
  • B= Tool Cut angle
  • H= Difference between major and minor dia of the thread
  • M= Cut pattern
  • M32= Longitudal
  • Q= Number of leads

Code
N24 (T5 OD 60DEG CW THREAD TOOL)
N00 G97 G95 S300 M3
N01 G0 X2.1 Z3.05
N02 M8
N03 G0 X1.2
N04 Z0.1538
N05 X0.7
N06 G1 X0.5 F0.076
N08 G71 X0.4 Z-0.8269 D0.01 U0.003  B29. H0.05 F0.077 M32
N09 G0 X1.2 Z-0.8269
N40 Z3.05
N41 X2.1

Note: Feed mode must be in G95(IPR)


Okuma Lathe G and M codes

January 8, 2011, 1:30 am by Eldar Gerfanov

Here is a list of Okuma G and M codes i got from the manual

Note Some codes may not be supported by your machine, all information is given as is and i dont give a ... if you break something.

Information given here is correct to the best of my knowlege

Read More 


Repeating OKUMA CNC Lathe program number of times

January 6, 2011, 2:00 pm by Eldar Gerfanov

If you want OKUMA Lathe to repeat program several times you can use a subprogram or a conditional GOTO statement.

On Many Okumas subprograms is an option you have to buy, so we have to use GOTO statement.

Code
O1 
CN=7 (NUMBER OF CYCLES TO REPEAT) 
CC=0 (CURRENT CYCLE)
N0
......
(part program)
......
CC=CC+1 
IF [ CC LT CN ] N0 
M2

Thats it 

This little code helps alot when using bar feeder and stuff like that.

 


Avoiding Chatter in corners of a pocket

January 3, 2011, 2:02 am by Eldar Gerfanov

If you are finishing a pocket with wall corners' radius close to the radius of a cutter. The tool tends to chatter, especially with longer tools and harder materials.

To avoid this you can do one of the following:

  • When programming. After roughing the pocket and before finishing. Create a simple drill cycle with finishing tool to remove extra material from the corner. This way when finisher goes to the tight corner, the chatter will virtually disappear.
  • Do the same with a drillbit. Before Roughing.

Pages:(2) 1 [2]

© 200908:53:46-2016 Eldar Gerfanov. All Rights Reserved.
© 2009 Eldar Gerfanov. Materials on this site are presented as is and are mostly for educational use. You may freely reproduce information presented herein without any consent from me, provided you include link to this site.
In case when i am not the copyright holder, you may want to contact proper owner of material. Anyway, they are freely available on the Internet.
If you hold the copyright right for any of the materials on this site and want them removed, please contact me here