586,103 active members*
3,703 visitors online*
Register for free
Login

Thread: Line Numbers

Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Posts
    142

    Line Numbers

    Hello
    Ive been editing a post to custom fit our needs here and have been able to figure out everything we need except one.

    I would like at each new toolchange/operation for the line number to be a multiple of 10, n10, n20, n30 etc.
    ive already changed the post to print n10 on the first tool, however the tools after that one handled by the 2nd part of the post is over my head.
    can anyone help with this?
    using x5 on a Haas vf 4axis machine

    thank you
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2003
    Posts
    4826
    I know nothing about Mastercam or its post processors. One suggestion though: could you live with the Tool number transformed into a line number? I'm thinking maybe you can figure out how to grab the tool number and prepend an 'N' onto it. This won't give you a multiple of 10 as you were thinking, but it may also be handy to search through a program based on what tool you were thinking of calling up.

    Another fellow showed me a trick with a post processor in another program: turn line numbering on, and then forbid line numbering for lines beginning with all letters of the alphabet except 'T'. This works well enough for searching through a program by just looking for any instance of 'N'. This gives unique line numbers that are not in any predictable sequence except that they are increasing.
    First you get good, then you get fast. Then grouchiness sets in.

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Jun 2005
    Posts
    305
    AFTER SAVING A COPY OF YOUR ORIGINAL POST!
    What you can do is go through your post and delete all occurrences of n$, EXCEPT for the actual toolchange line.
    Then add "0", immediately after the n$, on the tool change line.
    This effectively gives you the result you want.
    ObrienDave. MasterCam since V6. Gcode since 1983.
    The nose you punch today may belong to the butt you have to kiss tomorrow.

  4. #4
    Join Date
    Apr 2007
    Posts
    142
    Thanks for the help guys i appreciate it

Similar Threads

  1. no line numbers
    By weirdharold in forum UG NX
    Replies: 6
    Last Post: 01-22-2009, 04:42 PM
  2. Line numbers
    By Eritex Inc. in forum Mastercam
    Replies: 6
    Last Post: 12-13-2008, 04:35 AM
  3. Line numbers
    By batmill in forum G-Code Programing
    Replies: 11
    Last Post: 09-16-2007, 09:25 AM
  4. How to get rid of line numbers in NC code
    By mcoughlin in forum CamWorks
    Replies: 1
    Last Post: 04-17-2007, 04:30 AM
  5. G-Code Line Numbers?
    By Imagineering in forum G-Code Programing
    Replies: 3
    Last Post: 08-17-2005, 01:26 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
  •