586,670 active members*
3,270 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2013
    Posts
    2

    sub-program renumber

    I have a large quantity of programs. Each program has up to 20 subs.
    I am running into the issue that I can no longer maintain unique program numbers.
    They are starting to overlap. So if i need to load a previous ran program, i am not able to because of the overlap.

    So if I want to load this in a machine and it overlaps one already in, I have two options.
    1. Manually change every m98p### in the main program and re number each sub.
    2. Output from my cam software as new

    Do you know of a utility that will renumber programs and sub numbers in a program for fanuc controls?
    All my programs are stored as a text file with the main program first and all the subs at the bottom in one text file.

    I download programs from the machine so that they can be ran again later. There are always some small changes made, like speeds and feed and depth of drill, etc.

    I want a macro or utility to renumber subs and sub-calls for me.

    Anyone have a solution?

  2. #2
    Join Date
    May 2003
    Posts
    323
    I do not remember exactly where I have seen this
    I think it's possible to get 6 digit program numbers on some newer controls.

    It could be just in option parameters this feature needs to be turned on.

  3. #3
    Join Date
    Jan 2014
    Posts
    7
    Nice program. You can capture great images with it.

  4. #4
    Join Date
    May 2003
    Posts
    323
    Allow 8 digit program numbers

    Fanuc 16/18/21/I-series -Parameter 6 from 0 to 1

    Try this

  5. #5
    Join Date
    Apr 2012
    Posts
    43
    Check if your machine allows local subs like a Haas, or if you can specify a line number in the subroutine like this:

    P1000 H25 M98

    Where H_ is the line number in program 1000.


    Sent from my SAMSUNG-SGH-I747 using Tapatalk

Similar Threads

  1. Steps to develop VB program to read CNC (G-code) program.
    By BhushanM01 in forum Visual Basic
    Replies: 7
    Last Post: 12-12-2017, 07:57 PM
  2. Replies: 1
    Last Post: 09-18-2014, 12:29 PM
  3. need to renumber program o-numbers and subs
    By cuttooltx in forum Uncategorised CAM Discussion
    Replies: 0
    Last Post: 11-27-2013, 10:59 PM
  4. Replies: 4
    Last Post: 03-06-2013, 07:56 PM
  5. Replies: 0
    Last Post: 12-27-2010, 09:55 AM

Posting Permissions

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