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:

Proper way to call subs with Mpmaster V9 post?


Recommended Posts

I have written a few custom drill cycles to post common G13 routines as subs, but if I translate the part program for multiple work offsets i get garbage posted. I think the problem is how I am calling the custom cycle as a sub.

 

In pdrlcst :

if drillcyc = 9, # G13 - Standard Feedthru

[

psub_call_s

subout = 1

psub_st_s

pbld, n, "G0", *feed_hgt, e

pbld, n, "G1", *depth_1, *plunge_fr, e

pbld, n, "G13", *rad_1, *rough_fr, *comp_1, e # solder well depth

pbld, n, "G1", *depth_2, *plunge_fr, e

pbld, n, "G13", *rad_2, *rough_fr, *comp_2, e # roughing depth

pbld, n, "G1", *depth_3, *plunge_fr, e

pbld, n, "G13", *rad_2, *rough_fr, *comp_2, e # rough at finish depth

pbld, n, "G13", *rad_3, *finish_fr, *comp_2, e # finish feedthru diameter

pbld, n, "G13", *rad_3, *finish_fr, *comp_2, e # spring pass

pbld, n, "G1", *depth_1, *rapid_fr, e

pbld, n, "G13", *rad_1, *finish_fr, *comp_1, e # cut burr at solder well depth

pbld, n,"G0", *clear_hgt, e

psub_end_s

subout = 0

]

In pdrlcst_2 :

#if drillcyc = 9, # G13 - Standard Feedthru Additional Points

if drillcyc > 8, # G13 - Additional Points

[

sub_prg_call = sub_prg_no

pcan1, pbld, n, pxout, pyout, strcantext, e

pbld, n, "M98", *sub_prg_call, e

]

 

Should I put subout = 1 in psub_st_s

and subuot = 0 in psub_end_s for starters?

 

How do I pass my last sub # to use in auto sub suuport(translate by toolplane)?

Link to comment
Share on other sites

banghead.gifcurse.gif

 

I gave up on "being compatible" with mcam auto sub support.

 

cheers.gifcheers.gif

I coded the post to do toolpath subs + custom drill subs nested in lower level. Much easier if I code it myself. mi triggers control tool subs and custom drill subs. Working very well and much cleaner than mcam auto subs.

cheers.gifcheers.gif

Guess I didn't need help after all.

How do I disable those subprogram check boxes anyway? LOL

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