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:

PECK DRILL CODE LONG HAND


HEAVY METAL
 Share

Recommended Posts

Belwo is a code for long hand peck cycle because control does not have canned peck. below that is my post language. What my problem is the z is not rapiding down with in .02 of last peck depth it is starting from top plane after every peck and feeding to next z depth.

 

i need after line n0004 a z value of -1800 (.02 above previous peck)I just cant seem to come up with right code. i'm i lookin in the right place.

 

thanks heavy

 

 

code:

 /(DRILL)

O001G80X+0Y+0Z0R0S00W02M03

N0001G80R0

N0002X-39370

N0003G79Z-2000F86 (1st peck)

N0004G80R0(rapid to ref plane)

N0005G79Z-4000(2nd peck)

N0006G80R0

N0007G79Z-6000

N0008G80R0

N0009G79Z-8000

N0010G80R0

N0011G79Z-10000

N0012G80R0

N0013G79Z-10220

N0014G80R0

code:

  pzrapid    # Linear movement in Z axis only - at rapid feedrate    

psubseqn

ccomp = 1

pcan

if mi2 = 0, pcan1, n, sgcode, zr, refht, strcantext,e

 

if mi2 > 0, pcan1, sn, sgcode, zr, strcantext, e

pcan2

Link to comment
Share on other sites

Heavy you need ot put up more of the drilling block to really help you that only controls a little of the drilling cycle for the post. Here is what it looks like from the MP5GENX post:

code:

prdrlout        #Output drill position

psign_ang_out

if plane_2 = zero, #XY

[

if gcode = 81,

[

result = force(drlz, drlz)

result = force(refhtoutz, refhtoutz)

]

xout, yout, drlz, p_out, s_out, refhtoutz

]

else,

[

if plane_2 = one, #YZ

[

if gcode = 81,

[

result = force(drlx, drlx)

result = force(refhtoutx, refhtoutx)

]

drlx, yout, zout, p_out, s_out, refhtoutx

]

else, #XZ

[

if gcode = 81,

[

result = force(drly, drly)

result = force(refhtouty, refhtouty)

]

xout, drly, zout, p_out, s_out, refhtouty

]

]

!refhtoutx, !refhtouty, !refhtoutz, !drlx, !drly, !drlz

 

pdrill #Canned Drill Cycle

pdrlcommonb

pcan1, pbld, n, *sgdrill, sgabsinc, *sgdrlref, prdrlout,

dwell, *feed, strctxt, e

pcom_movea


This is the section that controls the drilling the pzrapid only has something to do with postion moves between parts of the operations and also repeative cycles doing mostly with milling if I am correct in my thinking. Put of this part of your psot and we can tune it better.

 

One mroe thing turn on Debug and put up the results that for the code you just put that will be a big help also.

Link to comment
Share on other sites

if you can turn OFF canned pecking this way ->

 

usecanpeck : no #Use canned cycle for Peck

 

and program a peck cycle. The canned drilling postblocks DO NOT GET CALLED. Which is what you want! MP will now produce the drilling motions with calls to PRAPID and PLIN. I'd insert some diagnostics in those posblocks (be sure to turn off 'fastmode'). That way you can see when those postblocks get called and what is the 'Z' value they are getting.

 

code:

prapid          #Output to NC of linear movement - rapid               

"*PRAPID* and Z = ", ~z, e # diagnostic


Link to comment
Share on other sites

Thanks I like atleast putting up some response right or wrong that way if I am wrong the people in the know will correct me and I get to learn something in the process. The path of education is filled with it aggravations and is how we learn in life and become better at those things in life.

 

 

I honestly try to help not hinder and my only question is why did it take a wrong answer to get you involved?

 

[ 03-30-2004, 02:56 PM: Message edited by: Millman^Crazy ]

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