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

  • 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. Hi, I am quite struggling with my post processing macro. I would like to add another peck drilling macro with additional parameters. So far I have had no luck in getting it working. The custom peck drill cycle I am trying to add is described in G-code as: Code name: G84 G90/G91 G99/G98 G84 X_Y_Z_R_I_D_Q_(J_K)(P_)F_(L_); The values in brackets are optional. X: X coordinate Y: Y coordinate Z: Z coordinate R: Z coordinate of return point (prdrlout) I: First cutting depth (initial cut) D: Runout distance from drilling depth Q: Basic cutting depth after second cutting (peck1) J: Every cutting decreasing depth after third cutting K: Minimum cutting depth P: Dwell time F: Cutting feed rate L: Repeated number Example: N106 G99 G84 X-.14 Y-.575 Z-2.76 R.5 I.6 D1. Q.1 F150. N107 X1.14 Y-2.575 N108 G80 Here is the post macro I have done: fmt "Q" 2 peck1$ #First peck increment (positive) fmt "D" 2 runout$ #Runout distance fmt "I" 2 initial$ #Initial cut prdrlout #R drill position refht_a = refht$ refht_i = refht$ - initht$ if absinc$ = zero, refht_a, !refht_i else, refht_i, !refht_a ppeckdetail$ #Detailed Peck Drill Cycle pdrlcommonb pcan1, pbld, n$, *sgdrlref, *sg84drl, pfxout, pfyout, pfzout, prdrlout, *initial$, *runout$, *peck1$, *feed, strcantext, e$ pcom_movea pdrill_2$ #Canned Drill Cycle, additional points pdrlcommonb pcan1, pbld, n$, pfxout, pfyout, pzout, prdrlout, feed, strcantext, e$ pcom_movea ppeckdetail_2$ #Canned Peck Drill Cycle pdrill_2$ # -------------------------------------------------------------------------- # POST TEXT # -------------------------------------------------------------------------- [CTRL_MILL|DEFAULT] [peckdetail drill] 1. "Peck drill detail" 3. "" 7. "Peck" 8. "Initial cut" 9. "" 10. "Runout distance" 11. "" The variables in brackets are not so necessary at first. What am I doing wrong and how could I make it working?

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