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:

Lathe Canned Cycle Tip.


crazy^millman
 Share

Recommended Posts

I know how much fun we all have with canned cycles and lathe. I ran into a problem today where we were not getting Gcode on every line in the canned cycle. My 1st reaction was to just force out all Gcode. Then I gave it some thought and no I want my Gcode when to come when I need it not all the the time when doing other things long hand. So I changed this in the post and my canned cycles now have Gcode for every line in the canned cycles and only needed Gcode for non canned cycles. Enjoy and hope it helps someone:

 

code:

psgcode         #Output the Gcode based on the current plane

if rcc_flg$, *sgcode

else, sgcode

Sample canned this way:

code:

O6221

(CUSTOMER - GOODRICH LANDING)

(PART # - 901-036-221-103 REV NC1)

(MODEL # - 901-036-221-103 REV NC1.MCX)

(PROGRAMMER - RON
B)

(PROGRAM NAME - LV990110_CANNED)

(DATE - APR. 11 2008)

(TIME - 11:23 AM)

(PROGRAM REV - N/C)

N1(TOOL - 1 OFFSET - 1)

(OD ROUGH RIGHT - 80 DEG. INSERT - CNMG-432)

G0 T0101

G97 S291 M03

G0 Z.1

X4.2

G92 S1000

G96 S320

M8

G71 U.1 R0.

G71 P100 Q110 U0. W.025 F.016

N100 G0 X2.5 S320

G1 Z-17.775

N110 G1 X4.2

G0 Z.1

M9

G0 Z5.

G28 U0. M05

T0100

M00

N2(TOOL - 2 OFFSET - 2)

(DDJNR-164D - DNMG-432 INSERT - DNMG-432)

G0 T0202

G97 S489 M03

G0 Z.2263

X2.5

G92 S1000

G96 S320

M8

G71 U.1 R0.

G71 P120 Q130 U.1 W.025 F.016

N120 G0 X2.1506 S320

G1 X1.959 Z.0604

G1 Z-1.4287

G3 X1.9537 Z-1.4441 I-.0463

G2 X1.9 Z-1.6004 I.4419 K-.1563

G1 Z-17.775

N130 G1 X2.5

G0 Z.2263

M9

G0 Z5.

G28 U0. M05

T0200

M30

%


Sample long hand:

code:

%

O6221

(CUSTOMER - GOODRICH LANDING)

(PART # - 901-036-221-103 REV NC1)

(MODEL # - 901-036-221-103 REV NC1.MCX)

(PROGRAMMER - RON
B)

(PROGRAM NAME - LV990110)

(DATE - APR. 11 2008)

(TIME - 11:23 AM)

(PROGRAM REV - N/C)

N1(TOOL - 1 OFFSET - 1)

(OD ROUGH RIGHT - 80 DEG. INSERT - CNMG-432)

G0 T0101

G97 S204 M03

G0 Z.1

X6.

G92 S1000

G96 S320

M8

Z.1866

X4.1111

G99 G1 X4.0111 Z.1 F.015

Z-17.75

X4.2

X4.3414 Z-17.6793

G0 Z.2116

X3.9222

G1 X3.8222 Z.125

Z-17.75

X4.0311

X4.1725 Z-17.6793

G0 Z.2116

X3.7333

G1 X3.6333 Z.125

Z-17.75

X3.8422

X3.9836 Z-17.6793

G0 Z.2116

X3.5444

G1 X3.4444 Z.125

Z-17.75

X3.6533

X3.7948 Z-17.6793

G0 Z.2116

X3.3556

G1 X3.2556 Z.125

Z-17.75

X3.4644

X3.6059 Z-17.6793

G0 Z.2116

X3.1667

G1 X3.0667 Z.125

Z-17.75

X3.2756

X3.417 Z-17.6793

G0 Z.2116

X2.9778

G1 X2.8778 Z.125

Z-17.75

X3.0867

X3.2281 Z-17.6793

G0 Z.2116

X2.7889

G1 X2.6889 Z.125

Z-17.75

X2.8978

X3.0392 Z-17.6793

G0 Z.2116

X2.6

G1 X2.5 Z.125

Z0.

Z-17.75

X2.7089

X2.8503 Z-17.6793

G0 X6.

Z.1

M9

G0 Z5.

G28 U0. M05

T0100

M00

N2(TOOL - 2 OFFSET - 2)

(DDJNR-164D - DNMG-432 INSERT - DNMG-432)

G0 T0202

G97 S204 M03

G0 Z.1

X6.

G92 S1000

G96 S320

M8

Z.2866

X2.4333

G1 X2.3333 Z.2 F.016

Z-17.75

X2.5

X2.6414 Z-17.6793

G0 Z.2866

X2.2667

G1 X2.1667 Z.2

Z-17.75

X2.3533

X2.4948 Z-17.6793

G0 Z.2866

X2.159

G1 X2.059 Z.2

Z-1.4287

G3 X2.0508 Z-1.4524 I-.0713

G2 X2. Z-1.6004 I.4184 K-.1481

G1 Z-17.75

X2.1867

X2.3281 Z-17.6793

G0 X6.

Z.1

M9

G0 Z5.

G28 U0. M05

T0200

M30

%


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...