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:

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.

 

Link to comment
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.

Link to comment
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.

Link to comment
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.

Link to comment
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
Link to comment
Share on other sites
  • 2 weeks later...

in mpmaster we use have some logic to suppress toolchanges with single tool. Your post is likely to have something similar.

 

      if ntools$ = one,
        [
        #skip single tool outputs, stagetool must be on
        #stagetool = m_one
        !next_tool$
        ]

Take note of the line:

        #stagetool = m_one

setting stagetool to -1 will suppress the toolcalls. If you have a line like this without the # before, then try adding a comment to that line.

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • 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

×
×
  • Create New...