BBprecise

Override Control Def. in post

Recommended Posts

Not having any luck creating a custom peck drill cycle in my post.

Is it possible to override the "Enable Canned Drill Cycle"  setting in the control def. if there is a value in a custom drill parameter box and use that value as my refht in the post?

I've asked my reseller, but sometimes their post dept. is back up and takes a while to get an answer. If not looks like I'm either long handing code manually or paying to have reseller modify my post.

Thanks.

Share this post


Link to post
Share on other sites

Yes, it is certainly possible to override the Control Definition Setting, if you're looking for Long-Hand code output. Otherwise, customizing the Mastercam Drill Cycle Dialog is relatively easily accomplished. Do you have a sample of what you need for input vs. output? (Some hand-edited code would be ideal...)

  • Like 1

Share this post


Link to post
Share on other sites

In the pprep$ post block you can insert a simple postblock  like below to set how each one is handled.  In the pdrillinfo block, only the misc 1 and misc 2 canned cycles can be used.  All the others become long code no matter what the Control Definition has in it.

pprep$            #Pre-process postblock - Allows post instructions after the post is parsed but before the NC and NCI file are opened.
                   #DO NOT ATTEMPT TO OUTPUT TO THE NC FILE IN THIS POSTBLOCK (OR ANY POSTBLOCKS YOU MAY CALL FROM HERE) BECAUSE THE NC OUTPUT FILE IS NOT YET OPENED!
                   rd_cd$       #Read CD Parameters
                   rd_mch_ent_no$ = 0  #Read only the machine base parameters (use to collect common parameters from CNC_MACHINE_TYPE)
                   rd_md$       #Read machine definition parameters
                   pdrillinfo   #Call the drill block that turns off the can cycles

pdrillinfo
                usecandrill$ = no$          # Use canned cycle for Drill
                usecanpeck$  = no$          # Use canned cycle for Peck
                usecanchip$  = no$          # Use canned cycle for Chip Break
                usecantap$   = no$          # Use canned cycle for Tap
                usecanbore1$ = no$          # Use canned cycle for Bore1
                usecanbore2$ = no$          # Use canned cycle for Bore2
                usecanmisc1$ = yes$         # Use canned cycle for Misc1
                usecanmisc2$ = yes$         # Use canned cycle for Misc2

 

Share this post


Link to post
Share on other sites
On 2/20/2020 at 4:39 AM, Sushant Singh said:

How to override File extension( i.e  .NC, .EIA.....etc) From .PST file 

 

Okay I have to ask why would you want to do this?

Share this post


Link to post
Share on other sites
On 2/19/2020 at 9:39 AM, Sushant Singh said:

How to override File extension( i.e  .NC, .EIA.....etc) From .PST file 

 

You do this in the Control Definition not the post.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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