Program ends with alarm 5010 after toolchange

Results 1 to 3 of 3

Thread: Program ends with alarm 5010 after toolchange

  1. #1
    Registered
    Join Date
    Nov 2010
    Location
    Greece
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Program ends with alarm 5010 after toolchange

    First of all i use Solicam (inside Solidworks) for my CNC jobs. The machine is a First MCV1000 with Fanuc 0i-mate controller.
    Problem is that whenever a job has more than one different operations that require a toolchange, the machine stops with alarm 5010.
    Alarm 5010 = END OF RECORD.
    Seems like the program has no more lines but that's not true.
    Let me give you an example of what Solidcam gives as a G-Code before and after the toolchange.

    N138 G02 X155.4116 Y30. I0. J-0.5003
    N140 G01 Y0.
    N142 G02 X154.9113 Y-0.5003 I-0.5003 J0.
    N144 G01 X77.4557
    N146 G03 X71.4557 Y-6.5003 I0. J-6.
    N148 G01 X77.4557
    N150 G00 Z50.
    N152 M05
    N154 M01

    N2 G90 G17 G40 G80 G00
    N156 M06 T2 () <------
    N158 (FM-facemill1)
    N160 G00 G54 G90 X-48. Y26.6666 S3500 M03
    N162 G43 H2 Z70.
    N164 Z50.
    N166 Z2.
    N168 G01 Z-0.75 F300.

    The toolchange is completed as normal (see the red arrow) and then immediately i get the alarm 5010.
    This forces me to enter the program in parts which is time consuming and very frustrating.
    It seems that the controller don't like something on the next line.... N160 G00 G54 G90 X-48. Y26.6666 S3500 M03

    NOTE: Due to lack of system memory i recently erased ALL the saved programs which unfortunately let me unable to make a toolchange. The hidden program O9001 has been deleted. I loaded manually the program and now the toolchange is working.
    Maybe there was another macro (hidden program) that is missing?

    Any help will be greatly appreciated!!!


    UPDATE

    The toolchange subprogram i loaded to the machine ends with M99 which i think forces the controller to loop and start the program again from the beginning.
    But the main program starts with the symbol %.
    Maybe this is the problem?
    Do you think my problem will get solved if i remove the M99 command from the O9001 subprogram?

    Similar Threads:
    Last edited by TeoDR; 12-17-2017 at 01:55 AM.


  2. #2
    Registered
    Join Date
    Nov 2010
    Location
    Greece
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Program ends with alarm 5010 after toolchange

    I will post here the O9001 subprogram i loaded, maybe it will help.
    I notice that it ends with M99 which will force the controller to begin the main program?

    %
    O9001

    #3003=1

    #3004=1

    IF[#4120EQ0]GOTO99

    IF[#500EQ#4120]GOTO99

    G91G28Z0

    G91G30Z0

    M19

    M55

    M56

    G4X0.5

    G91G28Z0

    T#4120

    M57

    G91G30Z0

    M58

    G4X0.5

    M59

    N99#500=#4120

    #3003=0

    #3004=0

    M99



  3. #3
    Registered Kev Brook's Avatar
    Join Date
    Feb 2011
    Location
    United Kingdom
    Posts
    37
    Downloads
    0
    Uploads
    0

    Default Re: Program ends with alarm 5010 after toolchange

    Hi there M99 is end of sub program. The line you have with the red arrow looks a bit wrong to me. Go into edit mode and take out the two brackets () the brackets are used for comments.i don’t think it will make any difference on your machine but on others it does
    Kev

    Read my blog for help and advice for beginners on CNC routers
    http://the-cnc.blogspot.co.uk/p/home.html?m=1


Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Program ends with alarm 5010 after toolchange

Program ends with alarm 5010 after toolchange