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 Cycle won't output R value for additional points


Recommended Posts

I'm using the custom drill cycle to create a double fine boring cycle. 

When there is only one hole, it works fine, but when there are additional holes, it doesn't post out the retract value.

for one hole, It uses the postblock pdrlcst$ and outputs the retract value through the postblock prdrlout

for the additional hole, it uses the postblock pdrlcst_2$, and even though I have the postblock prdrlout, it won't read it 

Looking to get the R value in all lines that have the G76

 

Here is the section of the post

 

pdrlcst$         #Custom drill cycles 8 - 19 (user option)
      #Use this postblock to customize drilling cycles 8 - 19
      pdrlcommonb
      pcan1, pbld, n$, "G76", pfxout, pfyout, pfzout, pcout,*prdrlout, *shftdrl$, dwell$, *feed, *sgdrlref, strcantext, e$
      pcom_movea
      pbld, n$, "G00", e$
      pdrlcommonb
      pcan1, pbld, n$, "G76", pfxout, pfyout, pfzout, pcout,*prdrlout, *shftdrl$, dwell$, *feed, *sgdrlref, strcantext, e$
      pcom_movea
pdrlcst_2$       #Custom drill cycles 8 - 19, additional points (user option)     
      pdrlcommonb
      pcan1, pbld, n$, "G76", pfxout, pfyout, pfzout, pcout,*prdrlout, *shftdrl$, dwell$, *feed, *sgdrlref, strcantext, e$
      pcom_movea
      pbld, n$, "G00", e$
      pdrlcommonb
      pcan1, pbld, n$, "G76", pfxout, pfyout, pfzout, pcout,*prdrlout, *shftdrl$, dwell$, *feed, *sgdrlref, strcantext, e$
      pcom_movea

 

Link to comment
Share on other sites

Thanks Jeff! That makes sense.

Do you know which variables on which to put the (*)?

prdrlout        #R drill position
      if cuttype = one, refht_a = refht$ + (rotdia$ / two)
      else, refht_a = refht$
      refht_i = refht$ - initht$
      if cuttype = three, refht_a = w$
      if absinc$ = zero, refht_a, !refht_i
      else, refht_i, !refht_a

 

This is the code that is posted.

%
O0001(TWO DRILL CYCLES.NC)
( DOUBLE BORE CYCLE TEST )
(OKUMA) 
(NOT PROVEN) 
( 04 / 08 / 19 )
(PROGRAMMED TO CENTER LINE OF CUTTER) 
N10 G20
N20 G90 G80 G40 G94 G17 G0
N30 N7 G116 T7
G15 H01
( .249 REAMER  HOLE .249/.2498   TOOL - 7  DIA. OFF. - 7  LEN. - 7  DIA. - .249 )
N40 G0 G90 X0. Y0.
N50 S1069 M3
N60 G56 H7 Z1. M8
N70 G71 Z1.
N80 G76 X0. Y0. Z-1. R.1 Q5. F6.4 M53
N90 G00
N100 G71 Z1.
N110 G76 X0. Y0. Z-1. R.1 Q5. F6.4 M53
N120 G76 X2.2417 Y.7523 Z-1. Q5. F6.4 M53
N130 G00
N140 G76 X2.2417 Y.7523 Z-1. Q5. F6.4 M53
N150 G00
N160 M5
N170 M9
N180 G0 G90 Z20.
N190 G0 G90 Y20.
N200 M30
N210 %

 

Link to comment
Share on other sites

Thanks Jeff. That worked. Here is the postblock and the added forced variables if someone else has this problem.

 

prdrlout        #R drill position
      if cuttype = one, *refht_a = refht$ + (rotdia$ / two)
      else, *refht_a = refht$
      *refht_i = refht$ - initht$
      if cuttype = three, *refht_a = w$
      if absinc$ = zero, *refht_a, !refht_i
      else, *refht_i, !refht_a

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