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:

MpMaster Question


gcode
 Share

Recommended Posts

I'm working up a simple VMC post, starting with the latest MpMaster..

I'm getting an R output in every line

 

G00 G17 G90 G54 X.75 Y-3.9265 S600 M03

G43 H1 Z2. T2

M08

G94

G81 Z-.2021 R.1 F3.

X4.125 Y-3.875 R.1

X14.5 Y-2.125 R.1

Y-6.375 R.1

G80

M09

 

Is there a simple way to get rid of the extra R's

Link to comment
Share on other sites

fmt Z 2 initht_i #Initial height

fmt R 2 refht_a #Reference height

fmt R 2 refht_i #Reference height

 

 

prdrlout #R drill position

if absinc$ = zero, refht_a, !refht_i

else, refht_i, !refht_a

 

Doesn't the ! mean "only output in R has changed??"

Link to comment
Share on other sites

no

 

prdrlout #R drill position

if absinc$ = zero, refht_a, !refht_i

else, refht_i, !refht_a

 

pdrlxy #Drill XY coordinates

if force_dpts, pfxout, pfyout

else, pxout, pyout

 

pdrill$ #Canned Drill Cycle

pdrlcommonb

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,

prdrlout, [if dwell$, *dwell$], *feed, strcantext, e$

pcom_movea

 

ppeck$ #Canned Peck Drill Cycle

pdrlcommonb

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,

prdrlout, *peck1$, [if haas, *peck2$, *peckclr$], *feed, strcantext, e$

pcom_movea

 

pchpbrk$ #Canned Chip Break Cycle

pdrlcommonb

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,

prdrlout, *peck1$, *feed, strcantext, e$

pcom_movea

 

ptap$ #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if rigid_tap, pbld, n$, *sm29, *speed, e$ #Rigid Tapping

if use_pitch = 0,

[

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,

prdrlout, peck1$, *feed, strcantext, e$

]

else,

[

if met_tool$, pitch = n_tap_thds$ # Tap pitch (mm per thread)

else, pitch = 1/n_tap_thds$ # Tap pitch (inches per thread)

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,

prdrlout, peck1$, *pitch, !feed, strcantext, e$

]

pcom_movea

Link to comment
Share on other sites

I emailed In House about this and just recieved a

reply..this post is new (07-30) so if you haven't

downloaded mpmaster in the last 3 weeks you can ignore this

 

quote:

>Attached is the revised issue of the post. It looks like we just missed

>this code when we were testing. We just left an extra line in the post.

>Thanks for catching that, I will update the emastercam site shortly.

>

>Regards,

>

>Chris McIntosh

>Post Processor Development

>In-House Solutions Inc.


Link to comment
Share on other sites

Mpmaster is sweet

Chis emailed me the new file

that I'd been working up for a VMC.

I took that file and overwrote an HMC mpmaster

post I did a few months ago.

The toolplanes and B axis stuff were correct right from

the start since it gets all that from the machine definition.

A few minutes of tweaking and rigid tapping

was coming out perfect. smile.gif

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