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:

code output needed


tnevy
 Share

Recommended Posts

Hi tnevy, welcome to the forum!!

 

You need to give more information:

 

what ver of Mastercam are you using, what should the code look like, what does the code look like now. Is it a Miltronics control and what version.

 

Also, it's Friday night, you may not get much help until Monday.

 

smile.gif

Link to comment
Share on other sites

MasterCam X4 software.

It is a Miltronics control.

The first G81 line is correct it has XYZ, R and feed rate. It's the second hole that has only an X or Y move as needed to get to the second hole. Machine only pauses then goes to the third hole location. At which point it gouged the part by literally moving to Y1.5Z-.11 and staying down and gouging to hole #4

 

G81 X-4.75 Y-1.5 Z-.1 R0.3 F10.

X4.75

Y1.5 Z-.11

X-4.75

G80

I need an R and Z at each hole even if it hasn't changed.

Thanks for any help you can offer to force output.

Link to comment
Share on other sites

Sorry, I don't have X4

 

 

Do a search (search is right under the 'New Poll' button above) for "forced output" and read about the various changes to the post processor.

 

You will need to add a f or * at the prout and pzout lines in the post. Hopefully someone can chime in with better information.

 

ALWAYS SAVE A COPY OF YOUR POST BEFORE MAKING CHANGES !!!!

 

hth

Link to comment
Share on other sites

I have the X Y and Z output at each line now, also the F rate just in case. Still having trouble getting the R value to output when the value hasn't

changed. I was able to fix the values I needed to be output in the

# Additional Holes

pdrill_2$ #Canned Drill Cycle, additional points

by adding an f or * to pxout, pyout, pzout

but it didn't help prdrlout

So I could still use some help to output an R value at each hole.

 

Thanks,

Tnevy

Link to comment
Share on other sites

quote:

but it didn't help prdrlout

So I could still use some help to output an R value at each hole.

If your prdlout postblock looks anything like this, you're in luck.

 

code:

prdrlout        #R drill position

if absinc$ = zero, refht_a, !refht_i

else, refht_i, !refht_a

Just add the force output modifier "*" to the variables that output the "R".

 

Like this:

code:

prdrlout        #R drill position

if absinc$ = zero, *refht_a, !refht_i

else, *refht_i, !refht_a

HTH

Link to comment
Share on other sites

You can NOT force out a postblock with a *. pxout, pyout, pzout and prdrlout are all postblocks and adding a * to them (pxout) will NOT work. You need to go into the postblocks themseleves and find the appropriate output variables and add the * to them. In our Mastercam posts there are also specific postblocks used to force XYZ which are pfxout, pfyout and pfzout so replacing pxout with pfxout would work for them but no such postblock exists for prdrlout.

 

John's suggestion would also work for the refht but you have to be careful to make sure NO other variables are formatted with the nonmodal format statement or they too will be forced out.

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