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:

Search the Community

Showing results for tags 'Peck Cycle'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Mastercam Forums
    • Industrial Forum
    • Post Processor Development Forum
    • Educational Forum
    • Woodworking Forum
    • Machining, Tools, Cutting & Probing
    • 3D Printing

Categories

  • Mastercam Demo Software
  • Files Referenced in Books and Videos
    • Instructor Files
    • Mastercam X7
    • Mastercam X6
    • Mastercam X5
    • Mastercam X4
    • Mastercam X3
    • Mastercam X2
    • STEM
  • Free Book Samples
    • Mastercam 2020
    • Mastercam 2019
    • Mastercam 2018
    • Mastercam 2017
    • Mastercam X9
    • Mastercam X8
    • Mastercam X7
    • Mastercam X6
    • Mastercam X5
    • Mastercam X4
    • Mastercam X3
    • STEM Curriculum
  • Mastercam eBooks (PDF)
    • Mastercam 2023
    • Mastercam 2022
    • Mastercam 2021
    • Mastercam 2020
    • Mastercam 2019
    • Mastercam 2018
    • Mastercam 2017
    • Mastercam X9
    • Mastercam X8
    • Mastercam X7
    • Mastercam X6
    • Mastercam X5
    • Mastercam X4
  • Mastercam Documentation
    • Brochures
    • Press Releases
    • Tips & Guides
  • Tools
  • Post Processors
    • Post Processor 'How To' Info
    • Mpmaster (all versions)
    • Mplmaster (all versions)
    • Application Specific Posts
    • Educational Post Processors
    • Post Processor Request Forms
    • Post Processor Feature Checklist Forms

Product Groups

  • Sitewide Subscription
  • Books
    • Older Versions (No Demo Software)
  • eBooks (PDF)
    • Mastercam 2023
    • Older Versions (No Demo Software)
  • Multimedia
    • Older Versions (No Demo Software)
  • Clearance
  • eCourses
  • eCourses

Categories

  • General Mastercam
    • Hasp / Sim License Articles
    • Nethasp
  • Lathe
  • Toolpaths
    • FBM Drill
    • FBM Mill
    • Dynamic Milling
    • Contour
    • Drill
    • Pocket
    • Face
    • 2D Highspeed
    • Engraving
    • Surface Rough
    • Surface Finish
    • Surface High Speed
    • Curve 5 axis
    • Drill 5 Axis
    • Swarf 5 Axis
    • Multisurface 5 Axis
    • Flow 5 Axis
    • Rotary 4 Axis
    • Port 5 axis
    • Advanced Multiaxis
    • Circle Paths
    • Circle 5 Axis
  • Wire EDM
  • Art
  • Post-Processing
  • Editors & DNC
  • Add-ons + Chooks & Nethooks
  • Windows, PC & Hardware Troubleshooting
    • Windows Issues
    • Videocards
    • Network & Filesharing
  • Multiaxis
  • eBooks

Blogs

  • Mastercam Training Solutions
  • eMastercam Community
  • Reseller Blog
  • Future of CNC Manufacturing Education
  • Mastercam Xtras
  • Latest News

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Interests


Location


Mastercam SIM Number


AIM


MSN

Found 1 result

  1. I recently had a customer that needed to drill some deep holes with multiple drills and needed a full retract. Typically this is a good solution for a macro, except, that they know zero about macros and are not even sure that they have Macro B. So I needed a Mastercam solution....so here is a custom cycle for anyone who can use it I created a new fs statement for rounding, if you already have an fs22 change it to something you don't have, just make sure you set the variable for the new fs statement fs2 22 3 09 3 09 #Output for rounding peck values variables to be defined fmt 2 drill_dist #calulate drilling distance fmt 2 pck_amt # Peck amount fmt 22 pck_no # Calculate no. OF PECKS fmt Z 2 drl_depth # Calculate Z drill depth fmt Z 2 z_return # Rapid Z dpeth fmt Z 2 rtr_hgt fmt 2 z_calc #calulated Z doeth fmt 2 prv_zdrill # Capture previousl drilled depth fmt Z 2 z_clear # Z clearance return value fmt 2 z_clear_val # Clearance distance to previous peck fmt Z 2 z_start_pos pass :-9999 # Calculate number of pecks remaining Define the custom call pdrlcst$ #Custom drill cycles 8 - 19 (user option) #Use this postblock to customize drilling cycles 8 - 19 if drillcyc$ = 8, pdrilldeep if drillcyc$ > 8, pdrlcst8 The actual cycle pdrilldeep pdrlcommonb pck_amt = peck1$ drill_dist = (-depth$ + tosz$) pck_no = (drill_dist/ pck_amt) pck_no = fmtrnd(pck_no) pass = pck_no rtr_hgt = peckclr$ z_calc = 0 z_clear_val = peck2$ z_clear = (tosz$ + z_clear_val) z_start_pos = initht$ pbld, n$, pxout, pyout, e$ pbld, n$, sg00, *rtr_hgt, e$ while pass > 0, [ drl_depth = ((tosz$-(pck_amt)) + (-z_calc)) pbld, n$, sg00, z_clear, e$ pbld, n$, *sg01, *drl_depth, *feed, e$ pbld, n$, sg00, *rtr_hgt, e$ prv_zdrill = drl_depth z_calc = z_calc + pck_amt z_clear = (prv_zdrill + z_clear_val) pass = pass - 1 ] z_clear = (prv_zdrill + z_clear_val) pbld, n$, sg00, z_clear, e$ pbld, n$, sg01, pfzout, *feed, e$ pbld, n$, sg00, z_start_pos, e$ pbld, n$, "(", "HOLE COMPLETE", ")", e$ pbld, n$, "(" ")", e$ pcom_movea The field changes [drill cycle 9] 1. "PECK SPECIAL" 2. "" 3. "" 4. "" 5. "" 6. "" 7. "Peck" 8. "Clearance Distance" 9. "Clearance Height" 10. "" 11. "" Peck = Amount of Drill Peck Clearance Distance = Distance away to rapid down from previous drilled depth Clearance Height = Height to retract to clear hole. and if you want to setup to do multiple holes pdrlcst_2$ #Custom drill cycles 8 - 19, additional points (user option) #Use this postblock to customize drilling cycles 8 - 19 if drillcyc$ = 8, pdrilldeep if drillcyc$ <> 8, pdrlcst8_2

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