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 parameter??


John13
 Share

Recommended Posts

If somebody has a chance, could you tell me what custom drill parameters are and how you use them. I'm guessing that they should/could make my job easier and I'm all for that. If it's to complicated to explain, where can I find more information about them. thank you.

Link to comment
Share on other sites

drl_prm1$

drl_prm2$

 

and so

 

You can define them wherever you need and use the formatted output. In whatever manner.

 

Here's a section of code that I use

 

code:

pdrlcommonb                                            #### OD/BOSS PROBE CYCLE ADDED 08/01/05 - JMP

#~drillcyc, e

if drillcyc$ = 10,

[

"(PROBE OD/BOSS)", e$

"(AUTO CENTERING CYCLE)", e$

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

pbld, "G04 P100", e$

pcom_movea

]

Link to comment
Share on other sites

I don't know. I've never used them, so I don't know how to use them or what they are. Is it something besides the regular drilling cycles?

 

The one you gave the section of code for, what does it do?

 

 

I've seen the option in the parameter page and was just wondering what they do or can do? curiosity thing I guess.

 

It may be something I'll never have to use.

Link to comment
Share on other sites

The sky is really the limit.

 

With what I have there using custom drill parameters and misc ints

I will get a probe cycle that looks like this

 

code:

G65 P8017 A.75 C2. D0. S.55 T.005 U-.005 V0. W1. Z-.15

You can format the variables to output the info how or what you need.

 

 

You could use them position, like a drill cycle, then call a sub-program, a macro, a custom cycle,it's really up to you.

Link to comment
Share on other sites

I think right now, this stuff is way above me. I know enough about posts to be dangerous. The only thing I really know about posts is to back it up before I screw it up. biggrin.gif

 

However, there is no better time than the present to learn something new. If I'm not in next week, my brain probably fried from this stuff. confused.gif

Link to comment
Share on other sites

Heres one for you guys;

 

I would like to be abe to set my standard peck drills for .100 pecks, which I do have this set, but I would like the option of having another cycle to choose from for my reamers, which I like to peck with .250 increments. Now, I have to change the first and second pecks back and forth, not a big deal, but I just programmed a baseplate with like 137 holes in it; anything to speed up programming time would be appreciated in my book.

 

Thanks all. cheers.gif

Link to comment
Share on other sites

See if this is what you are looking for Kelly.

insert this

code:

pdrlcommonb

if drillcyc$ = 9,

[

peck1$ = .25

pcan1, pbld, n$, *sgdrlref, *sg83, pdrlxy, pfzout, pcout,

prdrlout, *peck1$, *feed, strcantext, e$

pcom_movea

]

under this section

 

code:

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

Then change this section

code:

#Select operation note

sdr00 "DRILL/CBORE" # String definition

sdr01 "PECK DRILL." # " "

sdr02 "CHIP BREAK." # " "

sdr03 "TAP........" # " "

sdr04 "BORE 1....." # " "

sdr05 "BORE 2....." # " "

sdr06 "FINE BORE.." # " "

sdr07 "MISC 2....." # " "

sdr08 "CUST 09...." # " "

sdr09 "PECK REAM CYCLE" # " "

Then insert or change as needed this in the control section

code:

[drill cycle 10]

1. "PECK REAM CYCLE"

2. ""

3. ""

4. ""

5. ""

6. ""

7. ""

8. ""

9. ""

10. ""

11. ""

Then in the drill cycle descriptions section

add the "PECK REAM CYCLE"

 

code:

[drill cycle descriptions]

1. "G81/G82 - Drill/Counterbore"

2. "G83 - Peck Drill"

3. "G73 - Chip Break"

4. "G84/G74 - Tap"

5. "G85/G89 - Bore (feed out)"

6. "G86 - Bore (stop, rapid out)"

7. "G76 - Fine Bore (shift)"

9. "Subprogram Call"

10. "PECK REAM CYCLE"

As this sits it is hardcoded for a .25 peck

If you want to unlock it so you can use any peck just do this

 

 

Change this line

#peck1$ = .25

 

and in this section chage it like this

code:

[drill cycle 10]

1. "PECK REAM CYCLE"

2. ""

3. ""

4. ""

5. ""

6. ""

7. "PECK AMOUNT"

8. ""

9. ""

10. ""

11. ""

THat will unlock the peck variable and you'll be able to change to whatever you want.

 

And with that you'll add another peck cycle to you arsenal.

 

BIG NOTE

Before making any changes to your post make sure you back it up. This way if you blow up the edits you can still go back

 

cheers.gif

Link to comment
Share on other sites

here is what i did for a Fadal:

code:

pmisc1_2        #Canned Misc #1 Cycle

pdrlcommonb

pbld, n, sg00, pfxout, pfyout, pfcout, e

pcan1, pbld, n, *sg01, *pocdepth, *feed, e

pbld, n, "L9601", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

 

pmisc2_2 #Canned Misc #2 Cycle

pdrlcommonb

pbld, n, sg00, pfxout, pfyout, pfcout, e

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L9701", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

 

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

#Use this postblock to customize drilling cycles 8 - 19

pdrlcommonb

if drillcyc = 8,

[

pdrlcommonb

tloffno = t

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L9201", *engout, *engfont, *engheight, *engangle, *engser, *engword, e

pbld, n, sg00, *pocout, e

pcom_movea

]

if drillcyc = 9,

[

pdrlcommonb

tloffno = t

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L94", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

]

if drillcyc = 10,

[

pdrlcommonb

tloffno = t

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L95", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

]

if drillcyc = 11,

[

pdrlcommonb

tloffno = t

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L9801", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

]

if drillcyc = 12,

[

pdrlcommonb

tloffno = t

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L9901", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

]

pcom_movea

 

pdrlcst_2 #Custom drill cycles 8 - 19, additional points (user option)

#Use this postblock to customize drilling cycles 8 - 19

pdrlcommonb

if drillcyc = 8,

[

pdrlcommonb

pbld, n, sg00, pfxout, pfyout, pfcout, e

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L93", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

]

if drillcyc = 9,

[

pdrlcommonb

pbld, n, sg00, pfxout, pfyout, pfcout, e

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L94", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

]

if drillcyc = 10,

[

pdrlcommonb

pbld, n, sg00, pfxout, pfyout, pfcout, e

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L95", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

]

if drillcyc = 11,

[

pdrlcommonb

pbld, n, sg00, pfxout, pfyout, pfcout, e

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L9801", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

]

if drillcyc = 12,

[

pdrlcommonb

pbld, n, sg00, pfxout, pfyout, pfcout, e

pcan1, pbld, n, *sg01, *pocdepth, *feed, *tloffno, e

pbld, n, "L9901", *pocfeed, *pocstep, *pocwidth, *pocheight, e

pbld, n, sg00, *pocout, e

pcom_movea

]

pcom_movea

then in the defs i did this:

code:

fmt  Q  2   peck1       #First peck increment (positive)

fmt 2 peck2 #Second or last peck (positive)

fmt I 2 pecki #Peck I Word (This is different for Fadals)

fmt J 2 peckj #Peck J Word (This is different for Fadals)

fmt K 2 peckk #Peck K Word (This is different for Fadals)

fmt 2 peckclr #Safety distance

fmt 2 retr #Retract height

fmt Q 2 shftdrl #Fine bore tool shift

fmt Z 2 zdrl #Depth of drill point

fmt Z 2 tosz #Drilling top of stock

fmt Q 4 n_tap_thds #Number of threads per inch (tpi) / Pitch (mm)

fmt Q 2 thread_lead #Thread lead for Format 1 tapping

fmt Q 2 pitch #Tap pitch (inches per thread) Q for Format 1 & F Format 2 on Fadals

fmt R0 2 refht_a #Reference height (0) is added to work correctly for Fadals

fmt R0 2 refht_i #Reference height (0) is added to work correctly for Fadals

fmt R0+ 2 pocfeed #Feed Rate for Rectangular Pocket L9601 & L9602

fmt R1+ 2 pocstep #Step Over for Rectangular & Circular Pocket L9601 & L9602 & L9801 & L9802

fmt R2+ 2 pocwidth #Overall Width for Rectangular Pocket L9601 & L9602

fmt R3+ 2 pocheight #Overall Width for Rectangular Pocket L9601 & L9602

fmt R2+ 2 pocdia #Diameter for Circular Pocket L9801 & L9802

fmt R0+ 2 engout #Clearence for Engraving

fmt R1+ 2 engfont #Font for Engraving 0=Std Gothic, 1= Stencil Gothic, 2=Ser Std, 3=Ser Stencil

fmt R2+ 2 engheight #Height to Engrave Characters

fmt R3+ 2 engangle #Angle to Engrave Characters

fmt R4+ 2 engser #Serlization Engraving

fmt ( 4 engword #Text to Engrave

fmt Z 2 pocdepth #Depth for Pocket Routines

fmt Z 2 pocout #Clereance plane for Pocket Routines

fmt Z 2 engout #Clereance plane for Engraving Routine

hth

Link to comment
Share on other sites

All-right,

 

I built a new machine def., with a full version of the MPMaster post. This helps, because I could never see everything available that our customized post does not contain.

 

Im get stuck when I get to this:

 

quote:

N110 T1 M06 (11/32" DRILL HS)

N120 (MAX - Z2.)

N130 (MIN - Z-.75)

N140 G00 G90 G54 X.375 Y.875 S556 M03

N150 G43 H0 Z2.

CUSTOMIZABLE DRILL CYCLE X.375 Y.875 Z-.75

CUSTOMIZABLE DRILL CYCLE X.875 Y.375 Z-.75

N160 G80

N170 M05

N180 G91 G28 Z0.

N190 G28 X0. Y0.

N200 G90

N210 M30

Simple drill cycle right. How do I get the H and T numbers to agree, and how do I get it to output a G98 G81 XLOC YLOC R.1 Q.25 F0.0?

 

I think Im closer than I was 2 hours ago.

 

Thanks all. biggrin.gif

Link to comment
Share on other sites

for the H & T # go into your control def,

tools >> tool offset registers >> add to tool set 0 & 0

 

Make sure you change that in the global/disc copy under machine type >> control and NOT the operation manager local copy. Your changes will only be in the local copy if you change that one.

 

How did you create that drill cycle?

It appears to be a custom cycle.

Is the the X version of the MPmaster post from this site?

Link to comment
Share on other sites

If you're going to start from scratch with the MPMaster, I would suggest starting with the one available on the Forum.

 

now the question is how customized is the post you already using? If you want email what you have and I'll add in the cycle and then you can see how I did it.

 

 

Then in the future if you want to add something else you'll have a base to go by.

Link to comment
Share on other sites

quote:

If you know what it is you want to do pop your idea on up someone should be able to give you some direction

I'm sorry for the confusion, there is nothing I'm trying to do, I've seen the tab in my drilling operations and was curious about what could be done with it. I want to start to take advantage of the software as much as I can. The more I know, hopefully the easier my job would get. I'm sure I do a lot of stuff that could be done more efficiently if I knew how to use Mastercam to it's potential.

 

Sorry again, if I think of something I want to try, I'll be back. biggrin.gif

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