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:

Custom drill cycles for probing.


Bruce Caulley
 Share

Recommended Posts

Ahoy!

I have been asked to investigate the use of the probes in our 5 axis deckels for more of our general inspection work. I have a manual for the touch probe cycles for a Heidenhain TNC430 control, but just need an example of how I would add these into a post. Will I need to use miscelaneous integers or custom parameters for the field definitions or can it be done so that instead of having:

depth

peck

dwell

etc

etc

under the drill parameters page it has:

1st point xaxis

1st point y axis

nominal diameter

etc

etc

 

 

Any help appreciated.

 

Bruce

Link to comment
Share on other sites

Here's what I have added into an MpMaster post

 

quote:

uptol = mr1$ #UPPER TOLERANCE LIMIT #### MISC REALS mr1 and mr2 ARE USED

lowtol = mr2$ #LOWER TOLERANCE LIMIT #### TO SET THE UPPER AND LOWER TOLERANCES

z_height = mr10$ #RAPID HEIGHT

#### IN ALL CUSTOM PROBE CYCLES

fmt A 2 drl_prm1$

fmt B 2 drl_prm2$

fmt I 2 drl_prm3$

fmt J 2 drl_prm4$

fmt K 2 drl_prm5$

fmt S 2 drl_prm6$

fmt W 2 drl_prm7$

fmt X 2 drl_prm8$

fmt Y 2 drl_prm9$

fmt Z 2 drl_prm10$

fmt C 2 z_height

fmt T 2 uptol

fmt U 2 lowtol

Here are my macro calls

quote:

pdrlcst$ #Custom drill cycles 8 - 19 (user option)

#Use this postblock to customize drilling cycles 8 - 19

pdrlcommonb

#if drillcyc = 8, pcan1, pbld, n, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout,

# prdrlout, dwell, *feed, strcantext, e

if drillcyc$ = 8,

[

sub_prg_call = peck1$

pcan1, pbld, n$, *sg00, *sgabsinc, pfxout, pfyout, strcantext, e$

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

]

#else, "CUSTOMIZABLE DRILL CYCLE ", pfxout, pfyout, pfzout, pfcout, e

pcom_movea

 

pdrlcommonb

#~drillcyc, e

if drillcyc$ = 9,

[

"(PROBE ID)", e$

"(AUTO CENTERING CYCLE)", e$

pbld, n$, "G65 P8010", *z_height, "D0.", *drl_prm6$, *uptol, *lowtol, "V0.", *drl_prm7$, *drl_prm10$, e$

pbld, "G04 P100", e$

#pbld, "M98 P8098", e

pcom_movea

]

 

pdrlcommonb

#~drillcyc, e

if drillcyc$ = 10,

[

"(PROBE OD/BOSS)", e$

"(AUTO CENTERING CYCLE)", e$

pbld, n$, "G65 P8017", drl_prm1$, *z_height, "D0.", *drl_prm6$, *uptol, *lowtol, "V0.", *drl_prm7$, *drl_prm10$, e$

pbld, "G04 P100", e$

#pbld, "M98 P8098", e

pcom_movea

]

 

pdrlcommonb

#~drillcyc, e

if drillcyc$ = 11,

[

"(FIND X CENTER INSIDE)", e$

"(AUTO CENTERING CYCLE)", e$

pbld, n$, "G65 P8006", *z_height, "D0.", *drl_prm3$, *drl_prm6$, *uptol, *lowtol, "V0.", *drl_prm7$, *drl_prm10$, e$

pbld, "G04 P100", e$

#pbld, "M98 P8098", e

pcom_movea

]

 

pdrlcommonb

#~drillcyc, e

if drillcyc$ = 12,

[

"(FIND Y CENTER INSIDE)", e$

"(AUTO CENTERING CYCLE)", e$

pbld, n$, "G65 P8007", *z_height, "D0.", *drl_prm4$, *drl_prm6$, *uptol, *lowtol, "V0.", *drl_prm7$, *drl_prm10$, e$

pbld, "G04 P100", e$

#pbld, "M98 P8098", e

pcom_movea

]

 

pdrlcommonb

#~drillcyc, e

if drillcyc$ = 13,

[

"(FIND Y STRAIGHTNESS)", e$

"(AUTO ROTATION CYCLE)", e$

pbld, n$, "G65 P8015", *z_height, "D0.", *drl_prm4$, *uptol, *lowtol, *drl_prm8$, *drl_prm9$, *drl_prm10$, e$

pbld, "G04 P100", e$

#pbld, "M98 P8098", e

pbld, "G68","R",no_spc$, 35, no_spc$,"107", e$

pcom_movea

]

 

 

pdrlcommonb

#~drillcyc, e

if drillcyc$ = 14,

[

"(FIND X CENTER OUTSIDE)", e$

"(AUTO CENTERING CYCLE)", e$

"(ON THE X AXIS)", e$

pbld, n$, "G65 P8006",*drl_prm1$, *drl_prm2$, *z_height, "D0.", *drl_prm3$, *drl_prm6$, *uptol, *lowtol, "V0.", *drl_prm7$, *drl_prm8$, *drl_prm10$, e$

pbld, "G04 P100", e$

#pbld, "M98 P8098", e

pcom_movea

]

 

 

pdrlcommonb

#~drillcyc, e

if drillcyc$ = 15, [

"(FIND Y CENTER OUTSIDE)", e$

"(AUTO CENTERING CYCLE)", e$

"(ON THE Y AXIS)", e$

pbld, n$, "G65 P8005",*drl_prm1$, *drl_prm2$, *z_height, "D0.", *drl_prm4$, *drl_prm6$, *uptol, *lowtol, "V0.", *drl_prm7$, *drl_prm9$, *drl_prm10$, e$

pbld, "G04 P100", e$

#pbld, "M98 P8098", e

pcom_movea

]

 

pdrlcommonb

#~drillcyc, e

if drillcyc$ = 16,

[

"(FIND A CORNER)", e$

"(AUTO EDGEFIND CYCLE)", e$

"(ON THE XY AXIS)", e$

pbld, n$, "G65 P8013",*drl_prm1$, *drl_prm2$, *z_height, "V0.", *drl_prm7$, *drl_prm8$, *drl_prm9$, *drl_prm10$, e$

pbld, "G04 P100", e$

#pbld, "M98 P8098", e

pcom_movea

]

I am getting ready to add inspection routines over the next couple of months using our existing macros some I am developing and dprint.

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