Results 1 to 12 of 12

Thread: Improper G Code

  1. #1
    Registered
    Join Date
    Sep 2010
    Location
    Mexico
    Posts
    13
    Downloads
    0
    Uploads
    0

    Improper G Code

    I've got a programming problem with an Okuma & Howa ACT 3 lathe with Fanuc 15-T control... thanks to DCoupar I got the rough canned cycle syntax which is the following
    G71 P100 Q200 U0.025 W0.010 D0.050 F0.008 S700
    and when I run my program it gives me an Improper G Code alarm when it gets to this line... Does anyone know why its giving me this error
    Thanks


  2. #2
    Registered
    Join Date
    Sep 2007
    Location
    usa
    Posts
    23
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by lfacio12 View Post
    I've got a programming problem with an Okuma & Howa ACT 3 lathe with Fanuc 15-T control... thanks to DCoupar I got the rough canned cycle syntax which is the following
    G71 P100 Q200 U0.025 W0.010 D0.050 F0.008 S700
    and when I run my program it gives me an Improper G Code alarm when it gets to this line... Does anyone know why its giving me this error
    Thanks

    Put the S700 a line above the G71 line and use no decimal when expressing D value. In your case your D value is D500.


  3. #3
    Registered
    Join Date
    Sep 2010
    Location
    Mexico
    Posts
    13
    Downloads
    0
    Uploads
    0
    Gandp, I've made the changes you suggested but it's still giving me the Improper G Code Alarm.... This lathe has recently been purchased by the company I work for and I'm wondering if there is such a situation where this lathe doesn't support canned cycles....Any ideas?


  4. #4
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    Improper G-code typically means that the machine does not support the canned cycles that you are programming. IOW the canned cycle option is not activated in the control.

    Stevo


  5. #5
    Registered
    Join Date
    Sep 2007
    Location
    usa
    Posts
    23
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by stevo1 View Post
    Improper G-code typically means that the machine does not support the canned cycles that you are programming. IOW the canned cycle option is not activated in the control.

    Stevo

    Ok, that may be the case, but could it also be the "2 line" method he needs here? Example

    G71 U.05 (.05 depth per cut)
    G71 P100 Q200 U.025 W.01 F.008
    Last edited by gandp; 12-30-2010 at 04:27 PM. Reason: wrong info


  6. #6
    Registered
    Join Date
    Sep 2010
    Location
    Mexico
    Posts
    13
    Downloads
    0
    Uploads
    0
    I've tried the "2 line" command and I'm still getting the same error.... I'm thinking that i don't have the canned cycle option enabled on this machine... how do I enable this feature?


  7. #7
    Registered
    Join Date
    Sep 2007
    Location
    usa
    Posts
    23
    Downloads
    0
    Uploads
    0
    pm sent


  8. #8
    Registered rajanvadakkepat's Avatar
    Join Date
    Aug 2008
    Location
    singapore
    Posts
    10
    Downloads
    0
    Uploads
    0
    try this method.
    G71 U 0.20 R0.50;
    G71 P 100 Q200 U0.01 W0.0 F 0.0002;
    N100 G0 X ... Z 0.0;
    G1 X.....
    ..
    ...
    ...
    N200 G 0 Z 2.0;
    G28 U0.0 W0.0


  9. #9
    Registered
    Join Date
    Sep 2007
    Location
    usa
    Posts
    23
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by rajanvadakkepat View Post
    try this method.
    G71 U 0.20 R0.50;
    G71 P 100 Q200 U0.01 W0.0 F 0.0002;
    N100 G0 X ... Z 0.0;
    G1 X.....
    ..
    ...
    ...
    N200 G 0 Z 2.0;
    G28 U0.0 W0.0
    Oh that's right rajanvadakkepat. It's been a while for me with this. Would this be for the 15t or did fanuc use this style after that? The R value is depth of cut and the U is finish allowance? I don't know why they couldn't keep it to one line anyway.


  10. #10
    Registered
    Join Date
    Sep 2010
    Location
    Australia
    Posts
    985
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by rajanvadakkepat View Post
    try this method.
    G71 U 0.20 R0.50;
    G71 P 100 Q200 U0.01 W0.0 F 0.0002;
    N100 G0 X ... Z 0.0;
    G1 X.....
    ..
    ...
    ...
    N200 G 0 Z 2.0;
    G28 U0.0 W0.0
    I doubt that the way in which the G71 cycle is programmed will generate an Improper G Code alarm. If the control uses the two block G71 system, omitting the first block results in the values previously set being used, as the values are modal and non-volatile with power off, it does not cause an Improper G Code alarm.

    Stevo's comment regarding the control not supporting the canned cycles being programmed is correct and the most likely cause of this alarm condition.

    Regards,

    Bill


  11. #11
    Registered
    Join Date
    Sep 2010
    Location
    Mexico
    Posts
    13
    Downloads
    0
    Uploads
    0
    Thanks guys for your input... i've tried all the methods suggested and the machine still gives me an Improper G Code alarm. As Bill has suggested, I really do think that this machine does not have canned cycles enabled and so I guess I'm stuck at programming line by line.


  12. #12
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    G90 and G94 might be available which will simplify programming a little bit.


Similar Threads

  1. Improper V-Ready Off Alarm???
    By Crashmaster in forum Fanuc
    Replies: 3
    Last Post: 05-10-2013, 09:04 AM
  2. Need Help!- fanuc 10 m X axle improper NC adress
    By maher in forum Machine Problems, Solutions , Wireless DNC, serial port
    Replies: 0
    Last Post: 04-04-2008, 09:23 AM
  3. SX3... improper Mach3 pinout ?? no steppping
    By krazatchu in forum Syil Products
    Replies: 60
    Last Post: 02-19-2008, 06:21 AM
  4. Fanuc 11m error message. improper number of axis
    By kmcmillen571 in forum Machine Problems, Solutions , Wireless DNC, serial port
    Replies: 0
    Last Post: 04-01-2007, 08:14 PM
  5. svo13 y and u improper v_ready off
    By stanman in forum Machine Problems, Solutions , Wireless DNC, serial port
    Replies: 10
    Last Post: 11-15-2006, 09:11 AM

Posting Permissions


 


About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.