603,988 active members*
3,223 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > fanuc control rename sub routines on file transfer?
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    4

    fanuc control rename sub routines on file transfer?

    I am trying to do a long distance diagnosis on a fanuc control M0. The programming software we are currently using outputs all programs in sub routines, Main program is O1000 acutal machining subs are named O3000, O3001 so forth and so on. When the operator tries to down load the program all sub routines are renamed to the windows file name. Example: File being transfered is named 16030_30mm.TF1. Notepad shows sub program name "On pc" as O3001. On control after download file reads O16031, incrementing the original program name by 1? it is really causing a problem with in the program and operator needs to rename each sub to correct format. In some cases this could be 100+ programs. Machine Info: control is a M0, file transfer software is a dos based software, running windows 98 "I think" on Pc. I am told there is a funuc parameter that controls this? anyone have a direction I can look in? I have no manuals for this machine and have never run this machine.

  2. #2
    Join Date
    Mar 2003
    Posts
    2932
    I can't find anything in the 0m-C parameter manual that controls this behavior. Are the main and subs all combined into one file as below? Are you sure the program numbers begin with letter O and not 0 (zero)?

    O0100 (MAIN)
    ...
    ...
    ...
    M30

    O0101 (SUB1)
    ...
    ...
    M99

    O0102 (SUB2)
    ...
    ...
    M99
    %

  3. #3
    Join Date
    Feb 2007
    Posts
    4
    Thanks for the reply. This one has me stumped?

    Yes all programs are in one file. Meaning that if you open program# 16030_30mm.TF1 with notepad you will see O1000, O1001, O1002 O3001 and all other sub programs associated with this file. We have a post that outputs the code so the O 0 error should not be an issue. I have used the same format on Fanuc 11 15 and 16m controls along with two mitsubishi neomatic controls. Never had this issue.

    Not that it should matter, but the numbers are all in the 1000's Meaning

    O1000
    (this is the main program with a GOTO line)

    GOTO1

    (from here to the end of the main program are N blocks with respective sub calls)

    N1 M98 P3001

    (more code here for positioning)

    N2 M98 P3002

    N3 M98 P3003

    M30
    %

    O3001
    (here is the actual milling routines with X Y Z A moves)

    M99

    O3002
    (Next section of code)

    M99

    and so on

    Once again. I have never seen the mill in question and I am taking someones word for what they are doing. Meaning how they are doing the file transfer. I asked that they try a windows based file transfer versus the DOS style they are currently using. Just trying to make sure it has nothing to do with the 8.3 file name truncation issue??? grasping at straws for right now. The original program format this shop currently uses is a one program format. This is the first time they have used this style of program.

    I am told, as I said in first post, that all the O3000 are being modified in the control to a O16030 series file name. Meaning O3001 is O16031; O3002 is O16032 so forth and so on. Also I am assuming, bad word but I have to, that the first couple of files must be change also. I spoke to a friend and he told me that he has heard of this issue before but is not sure what the fix was. I assumed, Bad word again, that the control has a parameter associated with it.

    As a side note. The operator emailed me and told me that if he named the file in the pc to 1000 it did not rename all file numbers??? Problems is I have over 38000 programs, Can not name them all 1000.

    Any help is greatly appreciated.

  4. #4
    Join Date
    Mar 2003
    Posts
    2932
    The Fanuc doesn't have an issue with 8.3 DOS filenames, as it never sees them. All it sees is O1000, etc. I noticed you have a % after the M30. Is this really there in the file? There should be one at the beginning and one at the very end.

    Here's the section from the operator's manual.
    Attached Thumbnails Attached Thumbnails F0M Program Numbering.jpg  

  5. #5
    Join Date
    Feb 2007
    Posts
    4
    Thank you I believe you have answered my question.

    If the at the control they are using a program # Ie 16030 it will associate all programs transfered to the control with this number.

    It should be download ALL, Just open the connection and take in what is being fed to it.

Similar Threads

  1. Replies: 7
    Last Post: 10-23-2009, 04:52 AM
  2. Replies: 8
    Last Post: 06-03-2009, 02:14 PM
  3. file transfer
    By valleyron in forum Mazak, Mitsubishi, Mazatrol
    Replies: 0
    Last Post: 10-16-2008, 10:29 PM
  4. file retrieval on fanuc control
    By Bigbill in forum Daewoo/Doosan
    Replies: 5
    Last Post: 11-01-2006, 10:19 PM
  5. file transfer
    By axis overtravel in forum Fadal
    Replies: 13
    Last Post: 01-27-2006, 04: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
  •