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:

Helix bore subprogram


Brian Pallas
 Share

Recommended Posts

Yes, it just requires that you edit your Post to write the motion to the Subroutine, and then call the Sub at each new position, then suppressing the output to the NC File for the Sub, while machining each subsequent hole.

The Transform path is an excellent way to do this as well, but requires that the positions are spaced equally in XY for Translate, or Rotary. You can't just use a 'random' grouping of points with the Transform path.

Link to comment
Share on other sites

Thanks Colin.  It's just kind of a "I wonder if..." right now.  Sometime here it'll be a good side project to see if I can get it working.  

Yeah I was wondering about a solution for irregular spacings.

One thing I'd  like totry for helix boring, or ramping around a contour, is :

 

(  1/2 FLAT ENDMILL   TOOL - 1  DIA. OFF. - 1  LEN. - 1  DIA. - .5 )
G0 G90 X0. Y0. S6000 M3
G43 H1 Z6. M8
Z.1
G1 Z.02 F60.
G43 D1 X.375 
X.75

M98H1L10

G90

G1 G40 X0.
G0 Z6. M5
G00 X0. Y10.M09
M30

N1

G91
G3 X-1.5 Z-.03 I-.75 J0.
X1.5 Z-.03 I.75 J0.
M99

%

 

So only one lap in the sub and then L count for number of loops.  I think I would like to have that option available in mcam , but if I did get something like that able to be output, I would want to come up with a way that verify and backplot in mastercam still works.  This is a recent thought, so I'll think about it a bit here and there and then try something.

 

 

 

 

Link to comment
Share on other sites

For the Verify and Backplot, you'd just be verifying and backplotting the normal "Helix Bore" path inside Mastercam. Your normal programming routine wouldn't change, and the path would still appear the same on your screen when checking out the motion of the tool. The only thing we'd be doing in the post is just gathering the "info" from the operation itself, and then performing our own calculations inside the post to give you what you want for output. All the data is passed either in the form of the NCI moves, or by retrieving Parameters from the Operation itself, for use in our own calculations (inside the Post).

You'd just be taking the normal "input" from Mastercam (Helix Bore Tool Path data), and converting the output (NC Code) into a form that you prefer. Instead of a thousand lines of code to machine some bores, you'd have a bunch of G65 Macro calls, with a single Subroutine to perform the Incremental motion of the Boring Cycle. All of the positioning between the holes in done in Absolute.

 

 

Link to comment
Share on other sites

I run helix bore macros that are stored in the machines, and I've set up my post so that when I program a helix bore, the post pulls all the important info from the NCI and outputs it as a G65 (or G66) macro line; and since the macro is in the machine there is no subprogram to worry about outputting with the main program. Also, since I switch it on or off using a misc var, it has no effect at all on backplot or verify. So, basically like Colin said, minus the additional sub routine.

  • Like 2
Link to comment
Share on other sites
2 hours ago, Brian Pallas said:

Sound cool, and something I want to look into.  Thanks.  

What do you pass to the macro - diameter of the bore, diameter of cutter, pitch and depth?

Hole dia, tool dia, depth, pitch, feed plane height, feed. The macro can adjust the feed to compensate using the internal radius reduction formula.

I also do the same this with a threadmill macro.

  • Like 1
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...