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 'mastercam post'.

  • 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. Hello All, This post is for an Okuma MV460-VE with a OSP-P300MA Controller. I'm trying to write a custom probing cycle using one of the custom drill cycles in Mastercam 2021. I constantly have to write out by hand a program that probes the location of two dowel holes where one of them is 0,0 and the other is at some angle. The program then compares the actual measured angle to the nominal and makes a correction with work coordinate rotation. I have written custom drilling cycles to use probing before, but I have never needed the points to make a calculation. Where I'm stuck is how do I "get" the points inside of my custom drill cycle so that the post can calculate the angle between the points so that it can be posted out with the rest of the code? Here is my hand written code: (PROBE DATUM B - SET P1 WORK OFFSET) (PROBE DATUM C - FIND ACTUAL ANGLE ) (T32 - PROBE) G116 T32 (STAGE NEXT TOOL HERE) M201 (LOOK AHEAD OFF) (PROBE DATUM B - DIA 0.2502 - SET P1) (POSITION PROBE) G15 H1 G90 G00 X0.0 Y0.0 G56 HA G00 Z2.0 CALL O9832 (PROBE ON) CALL O9810 PZ=-0.5 (PROTECTED MOVE INSIDE DATUM A HOLE) CALL O9814 PD=0.2502 PS=1 (MEASURE DATUM A AND SET P1) CALL O9810 PZ=0.25 (PROTECTED MOVE OUT OF HOLE) CALL O9810 PX=9.0720 PY=3.7335 (PROTECTED MOVE TO DATUM C) (PROBE DATUM C - DIA 0.2502 - FIND ANGLE) CALL O9810 PZ=-0.5 (PROTECTED MOVE INSIDE DATUM C HOLE) CALL O9814 PD=0.2502 (MEASURE DATUM C POSTION) CALL O9810 PZ=0.25 (PROTECTED MOVE OUT OF HOLE) CALL O9833 (PROBE OFF) VS120 = VS75 (STORE DATUM C X POSITION) VS121 = VS76 (STORE DATUM C Y POSITION) (CALCULATE ACTUAL ANGLE) VS122 = ATAN[VS76/VS75] (CALCULATE CORRECTION AMOUNT) VS123 = 22.369 - VS122 IF[VS123 LT 0]NSKIP VS124 = VS123 (NEGATIVE ANGLE MATH) NSKIP VS124 = [VS123 + 360] (ROTATE ENTIRE WORK COORDINATE SYSTEM) G17 G11 X0.0 Y0.0 P=VS124 M202 (LOOK AHEAD ON) G30 P1 REST OF PROGRAM...... Here is the custom probe cycle I wrote that works ( it's probably sloppy but it works): if drillcyc$ = 8, [ pcom_moveb probe_Dia = peck1$ tool_wear = peck2$ probe_zvalDepth = depth$ probe_Feed = feed probe_zvalRetract = refht$ noform_probeDia = peck1$ noform_Tool = peck2$ pbld, n$, "M201 (LOOK AHEAD OFF)", e$ pbld, n$,"(POSTION PROBE)", e$ pbld, n$, pxout, pyout, e$ pbld, n$, "CALL O9832 (Probe On)", e$ pbld, n$, "CALL O9810", *probe_zvalDepth, *probe_Feed, "(Protected Move to Bore Measurement Height)" e$ pbld, n$, "CALL O9814", *probe_Dia, "(Measure Diameter)", e$ pbld, n$, "VC120 = VS78", e$ pbld, n$, "CALL O9810", *probe_zvalRetract, *probe_Feed, "(Protected Move out)" e$ pbld, n$, "CALL O9833 (Probe Off)", e$ pbld, n$, *sg00, initht$, e$ pbld, n$, "(CALCULATE DIAMETER OFFSET ADJUST T",*noform_Tool,")", e$ pbld, n$, "VC121 = VC120 - ", *noform_probeDia, e$ pbld, n$, *tool_wear, "= [VC121/2] +", *tool_wear, e$ pbld, e$ pbld, n$, "M202 (LOOK AHEAD ON)", e$ #pcom_movea ] pcom_movea Basically I just need to figure out how I can have the post calculate the "22.369 deg" in my hand written code and then I can figure out the rest. Thanks for any help, I'm really scratching my head because I'm not a computer programmer by any means!!

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