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 'G-code related questions'.

  • 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. One of the nuances of my new Makino PS95 VMC is that I need to type in the probing routines manually, which is a bit of a pain. I am a little spoiled with the Haas probing routines and the ability to just select the routine from a menu. The A51 with the Pro5 control is pretty much the same. If I want to probe the corner of a part in the PS95 I need to jog to the X position and enter the routine (N50 G170 X0. S1), then jog to the Y position and do the same, then the same with the Z position. I would like to set up one of my available M codes to call a macro that will do all of these with one command. This is a macro that I plan to write. The macro routine for probing X, Y, and Z surfaces is O9511. So to probe X, the call would be G65 P9511 X0. S1 (for G54). The issue I am running into is that this macro, along with the protected positioning macro (9510) require that a length offset be active (G43 H1) otherwise the machine will alarm. Is there a way to activate a length offset without moving the probe? If I run the program as follows the machine wants to move the probe to Z0. with respect to the active work offset: G43 H1 Z0. G65 P9511 X0. S1 (probe x surface, setting G54 x offset) The program I had in mind is something like this: (jog probe to corner of part, .25" above) #100 = 5 (X width) #101 = 4 (Y width) #102 = -.5 (Z drop) G65 P9510 X[#100/2] Y[-#101/2] F100. (position to center of part) G65 P9511 Z0. S1 (set G54 Z offset) G65 P9510 Y[#101/2+.4] (jog to position for probing Y offset) G65 P9510 Z-[#102] G65 P9511 Y0. S1 (probe Y offset) G65 P9510 Z#102 G65 P9510 X[-#100/2-.4] Y[-#101/2-.4] (position for probing X offset) G65 P9510 Z-[#102] G65 P9511 X0. S1 (probe X offset) M30 Bear in mind that I am very new to this and I realize I probably made a dozen syntax errors and omissions in the above program. The end result I am after is a program that will probe the XYZ locations of a part with one program call such as G65 P9xxx X5 Y4 Z-.5. Any help or advice is much appreciated. Thanks, Bob

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