586,103 active members*
3,205 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Mastercam > Post Processors for MC > N at the beginning of each tool?
Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2006
    Posts
    202

    N at the beginning of each tool?

    From what I've seen, it only appears that MCAM will let me either ouput sequence numbers for the entire program, or none at all. Is it possible to have it spit out an N code at the startup block for every tool? Example of what I want:

    N10G0G40G80G90G94G98
    M01
    T1M6
    G0G90G54X-1.125Y-.25S6112M3
    G43H1Z.25M8T2
    G4 P1000
    Z.1
    G1Z0.F48.9
    G41D51X-.875F97.79
    G3X-.625Y0.R.25
    G2I.625
    G3X-.875Y.25R.25
    G1G40X-1.125
    G0Z.25
    M9
    G91G30Z0.M19
    M01

    N20G0G40G80G90G94G98
    T2M6
    M01
    G0G90G54X-.1875Y.125S10000M3
    G43H2Z.25M8T3
    G4 P1000
    Z.1
    G1Z0.F97.79
    G41D52X-.3125F195.58
    G3X-.4375Y0.R.125
    I.4375
    X-.3125Y-.125R.125
    G1G40X-.1875
    G0Z.25
    M9
    G91G30Z0.M19
    M01

    N30G0G40G80G90G94G98
    T3M6
    M01
    G0G90G54X0.Y0.S9167M3
    G43H3Z.1M8T1
    G4 P1000
    G99G81Z0.R.1F88.
    G80
    M9
    G91G30Z0.M19
    G28Y0.
    M30
    %

    why does everything go to lowercase?

  2. #2
    Join Date
    Apr 2005
    Posts
    3634
    why does everything go to lowercase?
    The whole forum is messed up (lowercase).

    .

  3. #3
    Join Date
    Mar 2006
    Posts
    1013
    Find the section in the post that you want the output. Most likely this will be the ptlchg section of the post. Find the line where you want to force out the block number. Find the "n," in that line and replace it with a *n, "n" is the variable for the block number and the * forces the output of that variable. Then make sure the omitseq variable is set to yes (or 1).

    You you've turned off block numbers, except for that one place where you're forcing them out.

    Mike Mattera
    Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
    http://www.tipsforcadcam.com

  4. #4
    Join Date
    Feb 2006
    Posts
    202
    Thank you! I'll give it a shot.

  5. #5
    Join Date
    Feb 2006
    Posts
    202
    Quote Originally Posted by Mike Mattera View Post
    Find the section in the post that you want the output. Most likely this will be the ptlchg section of the post. Find the line where you want to force out the block number. Find the "n," in that line and replace it with a *n, "n" is the variable for the block number and the * forces the output of that variable. Then make sure the omitseq variable is set to yes (or 1).

    You you've turned off block numbers, except for that one place where you're forcing them out.

    Mike Mattera
    So, I've tried that, and it's not working. I found the n$ before the beginning of each toolchange, changed it to a *n, and it still posts out as:
    G0G40G80G90G94G98
    This is at the beginning of each tool, and I would like it to add in a "N10", or "N20", whatever tool # I'm on....

  6. #6
    Join Date
    Feb 2006
    Posts
    202
    omitseq$ : yes$ #CD_VAR Omit sequence numbers?
    seqmax$ : 9999 #CD_VAR Max. sequence number

    pbld, *n, *sgcode, scc0, sg40, sg80, *sgabsinc, sg94, sg98, e$
    This is what I've got in my post....

  7. #7
    Join Date
    Mar 2006
    Posts
    1013
    Did you say you were using MCam X? No.

    Put the *n$ in and try it again.

    It aways helps when you tell us what version your using.

    Mike Mattera
    Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
    http://www.tipsforcadcam.com

  8. #8
    Join Date
    Feb 2006
    Posts
    202
    Mike,

    Thank you! That works now. Sorry about not mentioning what version I was using. I wasn't aware that made a difference....

    One last question, if I may.... It gives me N100 at T1, N102 at T2, N103 at T3, etc. etc. Now do I get it to do N10, N20, N30, N40, etc. etc. I set the increment in the control definition to 10, but that doesn't seem to make a difference.

  9. #9
    Join Date
    Mar 2006
    Posts
    1013
    Machine Type - Control Definition - NC-Output - Start Seq Num = 10 - Increment Seq Num = 10.

    Mike Mattera
    Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
    http://www.tipsforcadcam.com

  10. #10
    Join Date
    Feb 2006
    Posts
    202
    I'll be darned. That did it. I had changed it just in the control definition. Apparently, one needs to go into machine def. and then into control def. and then re-load the machine def.... thank you!

Similar Threads

  1. a machine design (pics) from beginning to end
    By blurrycustoms in forum Vertical Mill, Lathe Project Log
    Replies: 42
    Last Post: 04-25-2013, 02:36 AM
  2. Getting Close to Beginning Lathemaster 9x30 CNC Conversion...
    By BobWarfield in forum Uncategorised MetalWorking Machines
    Replies: 12
    Last Post: 02-22-2006, 06:42 AM
  3. Beginning Crusader to Mach 2 Conversion Please Help
    By MMT in forum Bridgeport / Hardinge Mills
    Replies: 8
    Last Post: 10-31-2005, 06:13 AM
  4. Joe's CNC Router the beginning for testing
    By joecnc2006 in forum DIY CNC Router Table Machines
    Replies: 63
    Last Post: 04-14-2005, 07:20 PM
  5. At the very beginning
    By rackbox in forum DIY CNC Router Table Machines
    Replies: 16
    Last Post: 12-01-2004, 11:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •