Results 1 to 10 of 10

Thread: N at the beginning of each tool?

  1. #1
    Registered
    Join Date
    Feb 2006
    Location
    USA
    Posts
    199
    Downloads
    0
    Uploads
    0

    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
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3,665
    Downloads
    0
    Uploads
    0
    why does everything go to lowercase?
    The whole forum is messed up (lowercase).

    .


  3. #3
    Registered Mike Mattera's Avatar
    Join Date
    Mar 2006
    Location
    USA
    Posts
    1,011
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Feb 2006
    Location
    USA
    Posts
    199
    Downloads
    0
    Uploads
    0
    Thank you! I'll give it a shot.


  • #5
    Registered
    Join Date
    Feb 2006
    Location
    USA
    Posts
    199
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Feb 2006
    Location
    USA
    Posts
    199
    Downloads
    0
    Uploads
    0
    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
    Registered Mike Mattera's Avatar
    Join Date
    Mar 2006
    Location
    USA
    Posts
    1,011
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Feb 2006
    Location
    USA
    Posts
    199
    Downloads
    0
    Uploads
    0
    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
    Registered Mike Mattera's Avatar
    Join Date
    Mar 2006
    Location
    USA
    Posts
    1,011
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Feb 2006
    Location
    USA
    Posts
    199
    Downloads
    0
    Uploads
    0
    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-24-2013, 09:36 PM
    2. Getting Close to Beginning Lathemaster 9x30 CNC Conversion...
      By BobWarfield in forum General Metal Working Machines
      Replies: 12
      Last Post: 02-22-2006, 12:42 AM
    3. Beginning Crusader to Mach 2 Conversion Please Help
      By MMT in forum Bridgeport and Hardinge Mills
      Replies: 8
      Last Post: 10-31-2005, 12: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, 02:20 PM
    5. At the very beginning
      By rackbox in forum DIY CNC Router Table Machines
      Replies: 16
      Last Post: 12-01-2004, 05:56 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.