Sign in to follow this  
Rocketmachinist

Heidenhan post drilling cycles

Recommended Posts

I have been pulling out my hair but I think I have figured this thing out. I am using the Heidenhain 510 post and it was giving me some problems with the drilling cycles. I got the program to successfully drill to a depth of z-.750 from a top of stock of 0.0

Cycle Def 203 Universal Drilling

Q201=-.750 (drill depth)

Q203=0.0 (Surface coordinate)

 

Where I into issues is when I am trying to drill from a bottom up system. So my datum is at the bottom of my part and it is 3" tall. I want to drill to a depth of +.5. But Heidenhain wants to see the drill depth as a negative value only. It would be easy for a Haas to do this because you just say the final depth you want to drill to. Heidenhain wants an incremental Z- depth. 

 

Cycle Def 203 Universal Drilling

Q201=-.5 (drill depth)  This is wrong and doesn't work

Q203=3.0 (Surface coordinate)

 

I need it to output

 

Cycle Def 203 Universal Drilling

Q201=-2.5 (drill depth) (this is right but that means I have to take the drill depth value and do some math on it)

Q203=3.0 (Surface coordinate)

 

How do I make the post take the difference between a the surface coordinate and the final drill depth. I looked at format statements for delta but it didn't change the value accordingly.

Share this post


Link to post
Share on other sites
51 minutes ago, Rocketmachinist said:

I have been pulling out my hair but I think I have figured this thing out. I am using the Heidenhain 510 post and it was giving me some problems with the drilling cycles. I got the program to successfully drill to a depth of z-.750 from a top of stock of 0.0

Cycle Def 203 Universal Drilling

Q201=-.750 (drill depth)

Q203=0.0 (Surface coordinate)

 

Where I into issues is when I am trying to drill from a bottom up system. So my datum is at the bottom of my part and it is 3" tall. I want to drill to a depth of +.5. But Heidenhain wants to see the drill depth as a negative value only. It would be easy for a Haas to do this because you just say the final depth you want to drill to. Heidenhain wants an incremental Z- depth. 

 

Cycle Def 203 Universal Drilling

Q201=-.5 (drill depth)  This is wrong and doesn't work

Q203=3.0 (Surface coordinate)

 

I need it to output

 

Cycle Def 203 Universal Drilling

Q201=-2.5 (drill depth) (this is right but that means I have to take the drill depth value and do some math on it)

Q203=3.0 (Surface coordinate)

 

How do I make the post take the difference between a the surface coordinate and the final drill depth. I looked at format statements for delta but it didn't change the value accordingly.

Look for 'pdrill0$' or 'pdrlcommon'.

There is a Post Block in most Posts, where the depth values are calculated.

The MP Language has a bunch of predefined variables, which capture the values from the Drill Cycle Dialog box. These values are passed on the NCI G81 Parameter line. 

If you are using the Code Expert editor, you can see the 'variable auto-complete list' when you start typing. Type 'drl', and you will see a pretty extensive list of variables. 

Create a 'debug output section', and output each of these 'drl_' variables, using the Tilde modifier (~), for debugging output. That way you can test the values. Then, in the "drill calculations block", set your output (Q201-Q209), as needed. This is the block where 'zabs' for example, is being set.

 

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
Sign in to follow this  

  • 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