Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Mazak G-code Lathe Examples


Recommended Posts

Good day fellas,

 

i was wondering if ANYBODY could help us out and e-mail us a SAMPLE G-CODE file for a MAZAK QT-30 MAZATROL PLUS Control? we just had the control upgraded for eiaiso capabilities. we got a crappy post from Mastercam wholesalers and we are wondering if ANYBODY could gives a proven or somewhat of a reference to go off of.

 

the problem is that the machine is alarming out (ILLEGAL G-CODE).

 

all help is appreciated and thanks in advace!

 

best regards,

 

Pdq Machine!

Link to comment
Share on other sites

I don't have a post to give you here but if you upgraded the machine to EIA, you should have also received an EIA programming manual (if it didn't already come with the original machine books). In it has all of the G and M codes valid for the machine as well as the programming format.

 

cheers.gif

Link to comment
Share on other sites

quote:

we got a crappy post from Mastercam wholesalers

Well most of figured posts on our own and understand how to porgram machine without a post so we can then supply our dealers with smaple code of what we are looking for. Machines are very different and to have a perfect nailed down post for your machine now a days is damn near impossible. I like how people nenver have to take any responbility these days for their part in helping themselves or their company go some where. When you single blocked the program did you see the illegal G-code in question? Did you read the book to see what that G-code in question does? Did you use any of the samples in the programming book to cross reference what you can figure out?

Link to comment
Share on other sites

look Crazy Millman, if u didnt have anything productive to say, then dont say anything. do me a favor too and quit bustin my chops and trying to make urself sound like somekind of POST/PROGRAMMING GURU.

 

i TRIED all the things u mentioned above, we DIDNT get supplied a G-code manual by Mazak when they upgraded the control and the Mastercam dealers told us that these were GOOD posts for the Mazak. so, hence the reason why i am on here.

 

thanks for the INTELLIGENT input dude!

Link to comment
Share on other sites
Guest SAIPEM

Jedi-

 

I'll send you some stuff in the morning.

 

Keep in mind that your error could be because of the parameter that controls T32 Mode.

 

The control can be set up to emulate Yasnac single line canned cycles or standard Fanuc.

 

You'll want to use G30 instead of G28.

 

Send me all the G-Codes you're getting errors for.

 

I'll send you back a sample program that even includes live tooling.

Link to comment
Share on other sites
Guest SAIPEM

code:

%

O1234

(SAMPLE LATHE PROGRAM)

(CAST IRON)

G20

G30 U0.0 W0.0 M09

T0101

(80 DEGREE INSERT 0.0625 TNR)

G18

G50 S2500

G97 S993 M03

(FACE)

G99

G00 X3.8500 Z0.1 M08

G01 Z0.0 F0.020

G01 X2.2500 F0.008

(OD ROUGHING)

G96 S650 M03

G00 X3.7500 Z0.1

G01 X3.6250 F0.020

G01 Z-0.4855

G01 X3.7500

G00 Z0.1

G00 X3.6250 Z0.1

G01 X3.5000 F0.020

G01 Z-0.4855

G01 X3.6250

G00 Z0.1

(OD FINISHING)

G01 X3.3980 F0.020

G01 Z-0.4855

G01 X3.5130

G00 Z0.1

G01 X3.3880 F0.008

G01 Z-0.4855

G01 X3.5130

G00 Z0.1

G30 U0.0 W0.0 T0100 M09

M01

T0202

(1.25 DIA INSERT DRILL)

G18

G97 S1490 M03

(DRILL FOR ID BORE)

G00 X0.0 Z0.1 M08

G01 Z-0.5480 F0.006

G00 Z0.1

G30 U0.0 W0.0 T0200 M09

M01

T0303

(80 DEGREE INSERT 0.0625 TNR)

G18

G96 S650 M04

G00 X1.2500 Z0.1 M08

(ROUGH BORE ID)

G00 X1.3750 Z0.1

G01 Z-0.4855 F0.020

G01 X1.2500

G00 Z0.1

G00 X1.5000 Z0.1

G01 Z-0.4855 F0.020

G01 X1.3750

G00 Z0.1

G00 X1.6250 Z0.1

G01 Z-0.4855 F0.020

G01 X1.5000

G00 Z0.1

G00 X1.7500 Z0.1

G01 Z-0.4855 F0.020

G01 X1.6250

G00 Z0.1

G00 X1.8750 Z0.1

G01 Z-0.4855 F0.020

G01 X1.7500

G00 Z0.1

G00 X2.0000 Z0.1

G01 Z-0.4855 F0.020

G01 X1.8750

G00 Z0.1

G00 X2.1250 Z0.1

G01 Z-0.4855 F0.020

G01 X2.0000

G00 Z0.1

G00 X2.2500 Z0.1

G01 Z-0.4855 F0.020

G01 X2.1250

G00 Z0.1

G00 X2.3750 Z0.1

G01 Z-0.4855 F0.020

G01 X2.2500

G00 Z0.1

(FINISH BORE ID)

G00 X2.4900 Z0.1

G01 Z-0.4855 F0.020

G01 X2.3750

G00 Z0.1

G00 X2.5000 Z0.1

G01 Z-0.4855 F0.008

G01 X2.3750

G00 Z0.1

G30 U0.0 W0.0 T0300 M09

M01

T0404

(0.125 X 0.0625 RAD GROOVE TOOL)

G18

G96 S650 M03

(ROUGH OD GROOVE)

G00 X3.4880 Z-0.2115 M08

G01 X3.1980 F0.005

G04 P1000

G00 X3.4880

(FINISH OD GROOVE)

G00 X3.4880 Z-0.2430

G01 X3.2510 F0.005

G03 U0.0 W0.0630 R0.0315 F0.0025

G01 X3.4880 F0.005

G30 U0.0 W0.0 T0400 M09

M01

T0505

(0.09375 DIA END MILL)

M201

G28 C0.0

M08

G97

G98

G17

G12.1

G97 S2852 M203

(C-AXIS END)

G00 G40 X1.8190 Y0.0000

Z0.1

(MILL SLOT 1)

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.0300 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.0600 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.0900 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.1200 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.1500 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.1800 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.2100 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.2400 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.2700 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.3000 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

G00 X1.8190 Y0.0000

Z0.1

M248

M211

G01 Z-0.3300 F142.6

G01 X1.1250 Y0.0000 F5.7

G00 Z0.1

M212

(MILL SLOT 2)

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.0300 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.0600 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.0900 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.1200 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.1500 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.1800 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.2100 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.2400 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.2700 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.3000 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y1.5753

Z0.1

M248

M211

G01 Z-0.3300 F142.6

G01 X-0.5625 Y0.9743 F5.7

G00 Z0.1

M212

(MILL SLOT 3)

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.0300 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.0600 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.0900 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.1200 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.1500 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.1800 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.2100 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.2400 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.2700 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.3000 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G00 X-0.9095 Y-1.5753

Z0.1

M248

M211

G01 Z-0.3300 F142.6

G01 X-0.5625 Y-0.9743 F5.7

G00 Z0.1

M212

G13.1

M202

M205

G00 G30 U0.0 W0.0 T0500 M09

M01

T0606

(90 DEG SPOT DRILL)

M200

G28 C0.0

M08

G97

G99

G12.1

G97 S1070 M203

G17

(C-AXIS END)

G00 G40 X1.0409 Y1.0409

(SPOT DRILL HOLE)

Z0.1

G82 Z-0.0300 R0.1 P500 F0.005 M210

G80 Z0.1

G13.1

M202

M205

G00 G30 U0.0 W0.0 M09

T0600

M01

T0707

(PIN/LOC HOLE DRILL)

M200

G28 C0.0

M08

G97

G99

G12.1

G97 S2139 M203

G17

(C-AXIS END)

G00 G40 X1.0409 Y1.0409

(DRILL HOLE)

Z0.1

G83 Z-0.3280 R0.1 Q0.0300 F0.002 M210

G80 Z0.1

G13.1

M202

M205

G00 G30 U0.0 W0.0 M09

T0700

M01

T0909

(2.48 DIA X 0.125 CUTOFF TOOL)

M201

G28 C0.0

M08

G97

G98

G17

G12.1

G97 S2483 M203

(C-AXIS END)

G00 G40 X3.0750 Y0.0

Z0.1

(PROFILE MILL CUTOFF)

M248

M211

G01 Z-0.4230 F248.3

G01 G41 X2.4600 Y0.2300 F12.4

G03 X2.2300 Y0.0 R0.2300

G02 X-2.2300 Y0.0 R2.2300

G02 X2.2300 Y0.0 R2.2300

G03 X2.4600 Y-0.2300 R0.2300

G01 G40 X3.0750 Y0.0

G00 Z0.1

M212

G13.1

M202

M205

G00 G30 U0.0 W0.0 T0900 M09

M30

%

Link to comment
Share on other sites

Dear Fellow Mastercam users,

 

due to a misunderstanding between myself and the Mastercam wholesalers, i send out a sincere apology. in no way does my above comment, (A CRAPPY POST), reflect on the work ethic or the relationship between us and the wholesalers. as again, it was a complete misunderstanding. so again, i apologize. U know who u r chapete. thanks for the input guys!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...