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:

mplmaster edit question (mori nl2000)


neurosis
 Share

Recommended Posts

My question is where the G112 and G113 output are concerned.

 

When we ( I am helping out lathe area out with the lathe post ) program a c-axis profile, it seems that the lead in and lead out are read before and after the pmillccb and pmillcca.

 

The issue that I am having, is when it alarms out on the G113 I assume because it needs to be turned off after the cutter comp is canceled. I was getting an alarm at the G112 also but I muttled my way in to something that worked although I doubt it is correct.

 

Can someone help me understand how to get the G112 to post before the lead in, and the G113 to post after the lead out move? I tried to remove the lead out move all together and manually drive a lead in and out but it will not turn the cutter comp on or off properly unless I use the leadin/leadout.

 

This is the latest version of mplmaster downloaded from this site.

 

Im not very familiar with our lathes so try to bear with me. There may be some rules to c-axis that I dont understand so feel free to correct my ignorance.

 

Thanks.

 

code:

%

O0000

G20

(TOOL - 8 OFFSET - 8)

( 3/8 FLAT ENDMILL)

G0 T0808

G17

M69

M45

G0 G54 X3.4948 Z.25

C0.

G97 S2500 M13

Z-.765

G98 G1 Z-.865 F25.

G112

G41 X3.1948 C0. F30.55

G2 X3.0732 C-.2233 R.44

X.6044 C-.9217 R1.4401

X-.5818 C-.7938 R1.4401

X-.8668 C-.6237 R.2498

G1 X-.9835 C-.3834

G2 X-1.2464 C-.0211 R.6236

X-1.2582 C-.0249 R.19

G3 X-1.5134 C-.1799 R.31

G1 X-1.5208 C-.1899

X-1.5304 C-.1993

G2 X-2.315 C-.44 R.44

X-3.195 C0. R.44

X-3.0616 C.2328 R.44

X-.6046 C.9216 R1.4399

X.5816 C.7939 R1.4399

X.8668 C.6238 R.25

G1 X.9834 C.3834

G2 X1.2462 C.0214 R.6234

G3 X1.4888 C.1517 R.31

G2 X2.3148 C.44 R.44

X3.1948 C0. R.44

G113 <====== Alarms right here

G1 G40 X3.4948

G0 Z.25

G28 U0. V0. W0. H0. M5

T0800

M01

M30

%

Link to comment
Share on other sites

Yes, the control needs to read the G40 before the G113. I usually manually create the lead-in and lead-out, but it seems I have done it the other way also. I am not at work so I can't see if my post will turn cutter comp on correctly doing this.

 

Try using the cview utility and the regular mill contour toolpath instead of the C axis face contour toolpath. I usually have better luck with these, and I would try to see if lead-in will work with this one. It seems to me that I have used lead-in and lead-out page with success, but I can't remember off hand.

Link to comment
Share on other sites

Neurosis,

Are you using the latest version of MplMaster? I did a C axis face contour and this is the code as posted.

 

G20

(TOOL - 3 OFFSET - 0)

( 1/2 FLAT ENDMILL)

(MPLMASTER GENERIC 3/4 AXIS LATHE)

(MACHINE GROUP-2)

G54

N3 T0300

G17 G98

M23

M90

G0 C0. Y0.

M88

G0 X3.6643 Z.1

G97 P1069 M51

G112

G1 X3.0046 C1.0487 F6.42

Z-1.811

G41 X2.4564 C1.0708

G3 X2.4363 C1.0712 R.125

X2.1871 C.9562 R.125

G1 X1.8534 C-1.1186

G3 X1.8526 C-1.1286 R.125

X2.0826 C-1.2532 R.125

G1 G40 X2.6308 C-1.2753

Z.1 F500.

G113

M90

G28 U0. V0. W0. H0. M55

M30

 

It's simple straight cut with a 1/2 endmill, comp in wear, I've set misc value #4 to ON, I'm using lead in/out.

 

I did some digging in the post and based on the output you're showing it looks as if someone has edited the order of events in the ptoolend$ postblock. Check the order of pmillcca, it should be read prior to pm_retract

Link to comment
Share on other sites

cj,

 

Are you using the leadin/leadout? I can get code similar to that but the part that we are profiling does not have any straight cuts. It is all radius. I am using the lead in and lead out to turn on and off the cutter comp. If i remove the lead in and lead out. Maybe I should just add a straight line at the end of the profile for the lead out to turn off the cutter comp?

Link to comment
Share on other sites

Neurosis,

This is the code I get using three arcs, no straight lines, no lead in/out in toolpath parameters, comp set to wear.

 

(TOOL - 1 OFFSET - 1)

( 3/8 FLAT ENDMILL)

(MPLMASTER GENERIC 3/4 AXIS LATHE)

(MACHINE GROUP-1)

G54

N1 T0101

G17 G98

M23

M90

G0 C0. Y0.

M88

G0 X3.4483 Z.1

G97 P1426 M51

G112

G1 X-3.1623 Z-1.5 C.6875 F6.33

G3 G41 X-3.0493 C.7232 R.0625

G2 X0. C1.6875 R1.6875

X3.0493 C.7232 R1.6875

G3 G40 X3.1623 C.6875 R.0625

G1 Z.1 F500.

G113

M90

G28 U0. V0. W0. H0. M55

M30

%

 

Did you say that the post you're using has been edited? Was it worked on by someone at the shop or by a reseller?

If it was edited by the reseller they should fix it for you, or if it was a third party post the reseller should contact the post developer for you and get it corrected.

If it was edited by someone inside your shop well,....

 

 

sorry about that previous post I didn't read and completely process what you had written before I hit "Add Reply" (I've only had one cup of coffee)

Link to comment
Share on other sites

My NL post works with lead-in and lead-out using G112 in both C-Axis Face contour and Mill Contour.

 

Here is a sample:

(3/4" INSERT MILL)

N1

G0T101G55

G17

M45G98

M69

G0G28H0.

G0G30H0.

G97S4071M13

G0C0.Y0.

G0X11.3458Z2.

G12.1

G1X10.85C1.6586F500.

Z0.

Z-1.F41.

G41X11.

G3X8.I-.75

G1C-1.6586

G3X11.I.75

G1G40X10.85

Z2.F500.

G13.1

G28V0.

G53X0.Z-30.M5

M46G99

M1

M30

Link to comment
Share on other sites

Ok guys... I figured out wtf was going on. I have two posts that I have been playing with. I had the wrong one selected! Here is the code from the correct post rolleyes.gifcuckoo.gif

 

code:

 G54

N9 T0909

G17 G98

M45

M69

G0 C0. Y0.

G0 X3.3773 Z.25

G97 S2444 M13

G112

G1 X3.3773 C0. F500.

Z-.765

Z-.865 F25.

G41 X3.1273 F14.66

G2 X3.0151 C-.206 R.4063

X-.5544 C-.763 R1.4063

X-.8013 C-.6158 R.2161

 

 

<snip>

 

X1.551 C.1384 R.3438

G2 X3.1273 C0. R.4062

G1 G40 X3.3773

Z.25 F500.

G113

G28 V0.

G28 U0. W0. H0. M5

T0900

G99 G18

M0

M99


Apparently it was too early for me too!

 

[ 09-23-2010, 12:37 PM: Message edited by: Neurosis ]

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