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:

Post Modification Help


Recommended Posts

Im attempting to hack together a post for Okuma Mill.

 

Need to insert G71 Z......., (with Z= initial clearance height) prior to a drilling cycle.

 

 

I have edited pdrill as below

 

 

Mt attempt gave me this result:

 

G0 G17 G90 G54 X-3. Y3. S2500 M3
G56 H2 Z1. M8
G94
G71 Z-.2  (***wrong Z)
M53
G98 G81 Z-.2 R.1 F10.
X3.
Y-3.
X-3.
G80
M9
G0 G90 Z20. M5
M1
 
 
pdrill$          #Canned Drill Cycle
      pdrlcommonb
      pbld, n$, "G71", pfzout, e$  (**what could I use instead of pfzout to capture original clearance plane**)
      pbld, n$, "M53", e$
      pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,
        prdrlout, [if dwell$, *dwell$], *feed, strcantext, e$
      pcom_movea

 

Link to comment
Share on other sites

Format a variable

 

fmt   "Z"  2   z_height

pdrill$          #Canned Drill Cycle
      pdrlcommonb
      z_height = initht$
      pbld, n$, "G71", *z_height, e$
      pbld, n$, "M53", e$
      pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,
        prdrlout, [if dwell$, *dwell$], *feed, strcantext, e$
      pcom_movea
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...