10LIONS

Need an ''M6'' at beginning of program

Recommended Posts

alright all you brilliant machinist and post developers out there, we all start somewhere and I have zero training in this area, so quit laughing!

when we post a program with only one tool, our post does not generate a tool change, I've tried finding and correcting the issue in the post

but have spent too much time on this when I know how simple this probably is for one of you, also, the force tool change check box didn't fix this.

thanks guy's, here's an example

O1(PROGRAM - 860175113)
N1
(DATE - 23-07-20 TIME - 09:53)
(PULSE PART=8601751-1 OPERATION=OP1 QTY=1 )
(MCX FILE - P:\2000 ENGINEERING\MASTER CAM\BP\8601751-1\8601751-1.MCAM)
(NC FILE - C:\Users\eholt03\Documents\My Mastercam 2021\Mastercam\Mill\NC\860175113.EIA)
G65P79998
N37
G20
G0G40G80G90G94G98
G0G28G91Z0.
G0G28X0.Y0.
(HANDTMANN SAW BLADE TOOL - 37 DIA. OFF. - 1 LEN. - 1 DIA. - 15.748)
G0G54G90X-7.9012Y4.4813S5000M3
G43H1Z137.M7
Z136.09
G1Z135.891F125.
X10.8988F75.
Z136.091F275.
G0Z137.
M9
M5
G64
G0G28G91Z0.
G0G28X0.Y0.
G65P79999
M30

here's the beginning of our post

POST_VERSION] #DO NOT MOVE OR ALTER THIS LINE# V23.00 P0 E1 W23.00 T1592475229 M23.00 I0 O0
# Post Name           : MPMAZAKM
# Product             : MILL
# Machine Name        : GENERIC MAZAK
# Control Name        : GENERIC (M32/M-Plus/Fusion)
# Description         : GENERIC MAZAK EIA MILL POST
# 4-axis/Axis subs.   : YES
# 5-axis              : NO
# Subprograms         : YES
# Executable          : MP 9.13
#
# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO
# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.

 

Share this post


Link to post
Share on other sites

There is a specific stream that handles single tool programs. Yours appears to be broken.

Just remind me, what are the initials used in the revision log section just below where you stopped (IHS or CNC are usual). I think this was a generic.

Kinda busy now, will take a look later if I get a chance.

Try searching "Single tool" and you will see the specific post blocks and functions which control this.

Share this post


Link to post
Share on other sites

# Revision log:
# --------------------------------------------------------------------------
# Programmers Note:
# CNC 01/12/01 - Initial post setup v8.1
# CNC 01/09/02 - Initial post update for V9.0
# CNC 01/06/03 - Moved feed assignment below pcom_moveb to address bug w/feed in 4 axis
# CNC 02/04/03 - Initial post update for V9.1
# CNC 05/28/03 - Initial post update for V9.1SP1
# CNC 03/17/04  -  Added update to cc_pos and cutpos2 after each move.
#
# Axsys 9/5/08 - Fixed tap cycle coming up with another F that was not based on pitch <swk>
#                Also added aggregate head to control definition and logic for
#                turning canned drill cycles into long form for aggregate ops.
#
# Axsys 9/30/08  Binned for Hasp # 55907 and 117435
#
# Axsys 10/16/08 - Removed comment line at start of file.
#

thank you nickbe10, this is the second time you've helped me out, no hurry.

Share this post


Link to post
Share on other sites

In the meantime you could run a file compare against the Mastercam generic 4 axis post. Look in the downloads section on the Mastercam site and see if there is a Mazak Genric.

Either one of these should give you a clue when compared to your current post.

Looks like a pretty old post. You might want to consider updating, it is involved but you will learn a lot about post editing and you might end up with more functionality.

I updated mine when I went to X9, and I plan another when I update to 2021.

Share this post


Link to post
Share on other sites

Try doing a text search in your Post for "M6" or "M06". (Whatever posts out when you use multiple tools in a program.)

This will help you isolate where the output is supposed to be coming from. 

My guess is you have a logic condition like "if ntools$ > one". This logic would check for the total number of tools in your program, and will only output the Tool Change when you have more than one tool. 

The fix would be:

-Copy/Paste the line in the Post, and put a pound sign (#) in front of the 1st line. (So you keep a record of what you started with, so you can always go back.

-Remove the 'if statement'. (Cut from the 'i' in 'if', up to the first Comma only! (Make sure you remove the comma. The line should start with only a variable name, variable modifier, or String Literal.

-Test the output to be sure you get a M06 when using a single tool, or multi-tool program.

Hope that helps, 

Colin

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

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