View previous topic :: View next topic |
Author |
Message |
JoeM Master Poster
![](images/avatars/39755367340fd7f9f62f4d.gif)
Joined: 09 Jul 2004 Posts: 122 Location: Jackson Hole, Wyoming USA
|
Posted: Tue Apr 26, 2005 10:12 pm Post subject: Examples of a Mazak macro |
|
|
Can someone give me some examples for a Mazak m32.
Thanks _________________ Thanks.
===================
I would rather by Fly Fishing! |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
dawn Master Poster
![](images/avatars/9310529940f56c812f39e.gif)
Joined: 26 Jun 2004 Posts: 311 Location: Mishawaka, IN
|
Posted: Tue Apr 26, 2005 10:15 pm Post subject: |
|
|
Here is one from one of my customers, for a T-Plus but should be the same for M32.
What I sometimes do is write the program for one part that has a family of parts then change the values into variables. In this example the angle (#500) is the only thing diffrent between each part number.
Code: | %
O00010013(XXXXXXXXXX )
("X" ZERO= CENTERLINE OF PART)
("Y" ZERO= CENTERLINE OF PART)
("Z" ZERO= TOP OF PART)
(.2500 DIA. CARBIDE END MILL)
N100 G00 G90 G17 G54 G40 M39
(INSERT ANGLE ON MACRO #500 USUALLY 13)
#500=13.( ****SET ANGLE HERE**** )
G91 G30 Y0 Z0
T11 T30 M6
S5348 M03
#510=[#500/2]
#501=[90-#510]
#511=2.195(OUT SIDE START RADIUS AT CENTER OF CUTTER)
#512=1.9363(FINISH RADIUS AT CENTER OF CUTTER)
#513=[SIN[#510]*#511](Y START)
#514=[SIN[#510]*#512](Y FINISH)
#515=[TAN[#501]*#513](X START)
#516=[TAN[#501]*#514](X FINISH)
G00 G90 X-#515 Y-#513
G43 Z.5 H11 M08
G01 Z-.145 F100.0
X-#516 Y-#514 F21.4
G02 X-#516 Y#514 I#516 J#514
G01 X-#515 Y#513
G00 Z.5
X#515
G01 Z-.145 F100.0
X#516 Y#514 F21.4
G02 X#516 Y-#514 I-#516 J-#514
G01 X#515 Y-#513
G00 Z.5
G91 Z0 M09
G30 Z0
G30 Y0
M30
%
|
_________________ Dawn Mitchell
Manufacturing Information Solutions
www.mis-group.com |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|