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:
Hi Doug,
Unfortunately, I believe that a Tool Assembly is a static object. Once built, it does not have any connection to the individual components that were used to build the assembly.
For the H1/D1 output, don't worry about it at the Operation level. Just fix it in the Post Processor.
Open your Post in a Text Editor. (Make sure you have made a backup copy first!)
Near the top of the Post, find the section where the variables are first defined. Add the following code, and make sure it starts in the 1st column of the Text Editor.
tlngno$ = 1
tloffno$ = 1
Those Global Formulas will force all D and H values to be output as D1 H1.
In the pprep$ post block you can insert a simple postblock like below to set how each one is handled. In the pdrillinfo block, only the misc 1 and misc 2 canned cycles can be used. All the others become long code no matter what the Control Definition has in it.
pprep$ #Pre-process postblock - Allows post instructions after the post is parsed but before the NC and NCI file are opened.
#DO NOT ATTEMPT TO OUTPUT TO THE NC FILE IN THIS POSTBLOCK (OR ANY POSTBLOCKS YOU MAY CALL FROM HERE) BECAUSE THE NC OUTPUT FILE IS NOT YET OPENED!
rd_cd$ #Read CD Parameters
rd_mch_ent_no$ = 0 #Read only the machine base parameters (use to collect common parameters from CNC_MACHINE_TYPE)
rd_md$ #Read machine definition parameters
pdrillinfo #Call the drill block that turns off the can cycles
pdrillinfo
usecandrill$ = no$ # Use canned cycle for Drill
usecanpeck$ = no$ # Use canned cycle for Peck
usecanchip$ = no$ # Use canned cycle for Chip Break
usecantap$ = no$ # Use canned cycle for Tap
usecanbore1$ = no$ # Use canned cycle for Bore1
usecanbore2$ = no$ # Use canned cycle for Bore2
usecanmisc1$ = yes$ # Use canned cycle for Misc1
usecanmisc2$ = yes$ # Use canned cycle for Misc2
These files are intended for those who have purchased the Mastercam X2 4/5 Axis Training Tutorial, available in print form here.
The following files are included in the .zip file:
Tutorial 1:
TUT1_ROTARY.MCX
TUT1_ROTARY_TOOLPATH_X2.MCX
Tutorial 2:
TUT2_CONICALHELIX.MCX
TUT2_CONICALHELIX_TOOLPATH_X2.MCX
TUT2_CYLINDRICALHELIX.MCX
TUT2_CYLINDRICALHELIX_TOOLPATH_X2.MCX
Tutorial 3:
TUT3_ROLLDIE.MCX
TUT3_ROLLDIE_TOOLPATH _X2.MCX
Tutorial 4:
TUT4_ROTARY AXIS INDEXING.MCX
TUT4_ROTARY AXIS INDEXING_TOOLPATH.MCX
Tutorial 5:
TUT5_ROTARY 4AXIS.MCX
TUT5_ROTARY 4AXIS_TOOLPATH.MCX
Tutorial 6:
TUT6_CURVE5AX.MCX
TUT6_CURVE5AX_TOOLPATH.MCX
Tutorial 7:
TUT7_SWARF5AXIS.MCX
TUT7_SWARF5AXIS_TOOLPATH.MCX
Tutorial 8:
TUT8_FLOW5AXIS.MCX
TUT8_FLOW5AXIS_TOOLPATH.MCX
Tutorial 9:
TUT9_5AXISMULTISURFACE.MCX
TUT9_5AXISMULTISURFACE_TOOLPATH.MCX
TUT9_5AXISMULTISURFACE1_GEOMETRY.MCX
TUT9_5AXISMULTISURFACE1_TOOLPATH.MCX
Tutorial 10:
TUT 10_5AXISPORT.MCX
TUT 10_5AXISPORT_TOOLPATH.MCX
CUSTOM PROFILE TOOLX2.MCX
Free
1
point
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.