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 question


Guest
 Share

Recommended Posts

pgundrill   # Custom Gun Drill cycle  08/25/2015
      #~drillcyc$, e$
      pdrlcommonb
      #########################
      #Gundrill variable definition settings
      #########################
      drill_speed = dwell$
      start_hgt = peck1$ + 0.1
      drill_feed = peck2$
      clr_hght = initht$
      rpd_ht = refht$
      speed = 50
      spdir2 = 0
      #########################
      #Gundrill Cycle
      #########################      
      pbld, n$, *rpd_ht, e$
      pbld, *sg01, *start_hgt, *feed, e$
      pbld, n$, sm05, e$
      pbld, "M51" "(HIGH PRESSURE COOLANT ON)", e$
      pbld, *drill_speed, *sm03, e$
      pbld, n$, "G04", "P2000", e$
      pcan1, pbld, n$, *sg01, pxout, pyout, pfzout, *drill_feed, strcantext, e$
      pbld, n$, *sm05, e$
      pbld, n$, *sg00, *start_hgt, e$
      pbld, n$, *speed, *spindle, e$
      pbld, n$, *sm09, "(HIGH PRESSURE COOLANT OFF)", e$
      pbld, n$, sg00, *clr_hght, e$
      pbld, n$, "(END GUNDRILL CYCLE)", e$
      pbld, n$, "()", e$
      pcom_movea
[drill cycle 9]
1. "GunDrill Cycle w/High Pressure Coolant"
3. "Drill Speed"
4. ""
5. ""
6. ""
7. "Drill Start Height"
8. "Drill Cycle Feedrate"
9. ""
10. ""
11. ""

#----------------------------------------------------------------------------
#Gundrill variables           08/25/2015
#----------------------------------------------------------------------------
fmt  "S"   4  drill_speed
fmt  "Z"   2  start_hgt
fmt  "F"   15 drill_feed
fmt  "Z"   2  clr_hght
fmt  "Z"   2  rpd_ht

This was the output

(1.0014 GUN DRILL TOOL - 3 DIA. OFF. - 51999 LEN. - 51999 DIA. - 1.0014)
(POSITION 1- GUN DRILL THRU BORE Z-7.911)
T3M6
G90G10L10P#51999R0
G90G10L12P#51999R0
G0G90B270.
G0G54.1P3G90X-1.215Y-2.S25M4
T4
G43H#51999Z1.
Z.1
G1Z-.4F6.
M5
M51(HIGH PRESSURE COOLANT ON)
S2101M3
G04P2000
G1Z-7.911F2.1
M5
G0Z-.4
S25M4
M9(HIGH PRESSURE COOLANT OFF)
G0Z1.
(END GUNDRILL CYCLE)
()
M5
G0G28G91Z0.
G90G10L10P#51999R0
G90G10L12P#51999R0
M01
G0G17G40G80G90G94G98
G0G28G91Z0.
Link to comment
Share on other sites

in replaced the pdrill$ call in misc2 with pgundrill and placed the postblock pgundrill right after misc1

 

code:

pmisc2$          #Canned Misc #2 Cycle (User Option)      pgundrill 

 

and right afetr pbore2$

 

code:

pgundrill      pdrlcommonb      drill_speed = dwell$      start_hgt = peck1$      drill_feed = peck2$       pbld, *sg01, start_hgt, *feed, e$      pbld, drill_speed, e$      pcan1, pbld, n$, *sg01, pdrlxy, pfzout, *drill_feed, strcantext, e$      pbld, n$, sg00, *start_hgt, e$      pbld, n$, *speed, e$      pbld, n$, sg00, clr_hght, e$      pcom_movea

 

I also changed this at the bottom of the post in the "old" text section

 

code:

[misc2]1. "Gun Drill"2. ""3. "Drill Speed"4. ""5. ""6. ""7. "Drill Start Height"8. "Drill Cycle Feedrate"9. ""10. ""11. ""

 

and cchanges this in the drill cycle descriptions at the bottom

 

code:

8. "Gun Drill G01 Feed"

 

 

 So did you put those into the Custom Parameters? Or did you modify the normal Parameters?  I am trying to do something similar with my YCM post.

Link to comment
Share on other sites

No...this section here will re-label existing dialog boxes only when the cycle is chosen

 

 

code:

[misc2]

1. "Gun Drill"

2. ""

3. "Drill Speed"

4. ""

5. ""

6. ""

7. "Drill Start Height"

8. "Drill Cycle Feedrate"

9. ""

10. ""

11. ""

 

Link to comment
Share on other sites

The problem I am having is that I don't know what the Post Processor recognizes from what Mastercam defines.  For example, In the Cut Parameters page for the Peck Drill Cycle, it only uses the first Peck variable, so I know what the PP calls that.  But what does the PP refer to the Subsequent peck variable as?  Same for Peck clearance?  If I know that, then I think I can get it.  Or do I only need to reference what I am calling those spots? If I am using Peck to tell me Pilot Depth, do I just call it Pilot Depth in my PP lines?  That's what's hanging me up.

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