585,763 active members*
4,191 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays
Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2016
    Posts
    5

    Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    Hello,
    Please excuse a theoretician gracing himself in the world of machining but we have an Emco Turn 50 with code generated from InventorHSM. As it's our first run, it's a simple end knock down of a 3/4" delrin round stock. We set work shift, tool shifts, and upload code. We dry run, and the code looks good. BUT, we run without dry run mode and it locks up on a G0 command right at the tip of the piece. Here's the code. Mind you, InventorHSM wants to provide G54 command but WCS is not on this machine (that I know of-it throws an invalide Gcode command). As far as I can tell it hangs up on N21.

    Code:
    O1015 (34 STOCK) 
    N10 G90 G95 G18 
    N11 G20 
    N12 G92 S6000 
    N13 G28 U0. 
     
    (PROFILE5) 
    N14 T0202 
    N15 G94 
    N16 G97 S1000 
    N17 M3 
    N18 G0 X1.4588 Z0.1969 
    N19 G0 Z0.0409 
    N20 X0.7846 
    N21 G1 X0.7202 F0.004 
    N22 G18 
    N23 G1 G42 X0.6071 Z-0.0156 
    N24 Z-0.4572 
    N25 G2 X0.6714 Z-0.4731 R0.085 
    N27 G1 G40 X0.7846 Z-0.4165 
    N28 G0 Z0.0409 
    N29 X0.6559 
    N31 G1 G42 X0.5428 Z-0.0156 F0.004 
    N32 Z-0.3906 
    N33 G2 X0.6471 Z-0.469 R0.085 
    N35 G1 G40 X0.7602 Z-0.4125 
    N36 G0 Z0.0409 
    N37 X0.5759 
    N39 G1 G42 X0.4628 Z-0.0156 F0.004 
    N40 Z-0.3906 
    N41 G2 X0.6714 Z-0.5139 R0.125 
    N43 G1 G40 X0.7846 Z-0.4573 
    N44 X0.8222 
    N45 G0 X1.4588 
    N46 Z0.1969 
     
    N47 G28 U0. W0. 
    N48 M30 
    %

  2. #2
    Join Date
    Feb 2006
    Posts
    1792

    Re: Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    This code is not in G-code system A. It is in B or C. Most lathes are set to use system A. You would need to study your machine manual to find out what it needs.

  3. #3
    Join Date
    Dec 2008
    Posts
    3109

    Re: Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    What controller does it have ?

    A quick goggle indicates a possible Fanuc
    - it is only a lathe, yes ?

    then explain the g-codes you use ie G94,/G95 as these are milling codes for feed control, lathes use G98/G99
    - also look at the tip offset direction (0-8) when using cutter comp as this is a b?tch to get correct

    use single step to find the offending line ( or lines ), as the error could be reading ahead.
    ( to see if cutter comp is giving the problem, remove the G42, & see if it runs )
    ( make sure your retracts allow for the comp cancellation moves )

  4. #4
    Join Date
    Feb 2016
    Posts
    5

    Re: Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    Hi and thanks for the responses. Yes, I should have said Fanuc 0, just a lathe. However, I believe it to be Type B or C as the documentation I have on it specifies G94 and 95 as feed rates and G98 as return to start plane.

  5. #5
    Join Date
    Feb 2006
    Posts
    1792

    Re: Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    Change it to system A; otherwise nobody would be able to help you. Very few people use B or C.

  6. #6
    Join Date
    Feb 2009
    Posts
    6028

    Re: Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    Don't think it's locking up, I think your in feed per minute (g94) with a feedfrate programmed in inches per rev, so it's just going reallllly slow.

    Sent from my A3-A20FHD using Tapatalk

  7. #7
    Join Date
    Feb 2016
    Posts
    5

    Re: Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    Quote Originally Posted by underthetire View Post
    Don't think it's locking up, I think your in feed per minute (g94) with a feedfrate programmed in inches per rev, so it's just going reallllly slow.

    Sent from my A3-A20FHD using Tapatalk
    Wow, I think you're right. I'll take a look when I'm in the lab next. The funny thing is that the dry run "looked nice" but apparently it's not compensating for the feed rate in that mode. Thoughts? Thanks!

  8. #8
    Join Date
    Feb 2009
    Posts
    6028

    Re: Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    Dry run is in in inches per minute usually, that way you can dry run without the spindle rotating.

    Sent from my A3-A20FHD using Tapatalk

  9. #9
    Join Date
    Feb 2016
    Posts
    5

    Re: Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    Good point. I think this will get us on our way. Definitely been a learning experience. Thank you.

  10. #10
    Join Date
    Feb 2016
    Posts
    5

    Re: Fanuc-0 BUF - Spindle Runs, Tool Homes, Then Stays

    This solve our problem... thanks again.

Similar Threads

  1. J310 spindle stays on after program run
    By ken fedirko in forum Tree
    Replies: 0
    Last Post: 12-03-2013, 06:42 AM
  2. Replies: 9
    Last Post: 06-21-2012, 05:47 PM
  3. Replies: 9
    Last Post: 03-22-2008, 05:44 AM
  4. Fanuc 0M stays in MDI mode
    By malaron in forum Fanuc
    Replies: 4
    Last Post: 08-06-2007, 11:19 PM
  5. Fanuc 15-M... Spindle Off lamp stays ON
    By cncnovice in forum Haas Mills
    Replies: 11
    Last Post: 05-11-2006, 03:04 PM

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
  •