586,103 active members*
3,908 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Mastercam > Post Processors for MC > Sequence Number Before Every Tool Change
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Posts
    1

    Smile Sequence Number Before Every Tool Change

    I need to put a Sequence Number before every Tool Change, like this:

    Example:
    N102
    T2 M6
    G0 G90 G54 X9.15 Y-10. S1400 M3
    G43 H2 Z50. M8
    G1 G41 D2 X19.15 F150.

    I do not want a sequence number for every single line of command, but just for every occasion of tool change.
    I'm using MasterCAM X2 MR2, may I know which part of the MPFAN.pst should I amend?

    Thank you very much!

  2. #2
    Join Date
    May 2006
    Posts
    99
    Just open the post in editor and delete all "$n" in the lines, except the ones in the tool call line. Save your post under another name before you configure anything.
    Then go in machine configuration and put sequence number to 100. So first operation wil be N100 second N200 etc.
    Try stuff and you'l learn more

  3. #3
    Join Date
    Dec 2008
    Posts
    3109
    Stebedeff is nearly there, n$, is the string

    Don't even consider using the tool # as a value to put in this setting
    ie N112 for T12

    if you use the same tool in another operation later it would have the same number as the 1st call-up of that tool

  4. #4
    Join Date
    Mar 2005
    Posts
    988
    ... Unless you write the logic so that is adds a number for the next time the tool is called in the program. Controls can go to 4 digits (or more) for the N number. So the first time could be just the tool number (N12 for T12), the next time could be an added digit (N212 for T12 the second time), etc. If you have a larger magazine (over 100 tools), then go 4 digits (N12 = T12, N2012 = T12 second time, etc). This way, if you call T112, it could be N112 then N2112 the second time.

    This is just an example. Personally, I simply use the same N number as the tool number. I did write another at one time though to use a decimal value in the N number (some control can do this). So it would be N12.1, N12.2, N12.3, etc....

    I usually don't bother stripping the N$ string and simply create a new one for N numbers the way you'd like it. That way, the post could use both if needed or make it simple to go back to. The choice doesn't really matter.
    It's just a part..... cutter still goes round and round....

Similar Threads

  1. How to change Tool change position(About MAZATROL T1 control)
    By liushuixingyun in forum Mazak, Mitsubishi, Mazatrol
    Replies: 6
    Last Post: 01-07-2014, 01:33 AM
  2. Tool Serial Number Lookup
    By jcollazo in forum Calibration / Measurement
    Replies: 1
    Last Post: 10-06-2008, 08:23 PM
  3. Different tools with same tool number in CATIA?
    By nma98ceg in forum Uncategorised CAM Discussion
    Replies: 0
    Last Post: 08-25-2008, 06:29 PM
  4. Very slow tool change on Tool Room Mill
    By Capt Crunch in forum Haas Mills
    Replies: 3
    Last Post: 12-21-2007, 07:20 PM
  5. "tool slot number too large" code
    By dave6 in forum Mach Mill
    Replies: 1
    Last Post: 10-10-2006, 11:57 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
  •