585,582 active members*
3,885 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Fanuc Oi - MC - Problem with AI contour control (G05.1 Q1) by macro programming
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2009
    Posts
    146

    Fanuc Oi - MC - Problem with AI contour control (G05.1 Q1) by macro programming

    I have problem with AI contour Control, when I put "G05.1 Q1" in main program, "#5" in macro is not properly defined. In the example below, should be the value of the parameter equal to 10. In my case, it has already been determined prior to that, when set to 10. At the beginning of the macro I tried to cancel the "AI contour compensation" with "G05.1 Q0" and at the end of the macro again to activate the 'G05.1 Q1 ", but we machine reports a Error... What should I do?


    O0001 (MAIN PROGRAM)

    G54 G0 G80 G90 G17
    G05.1 Q1
    M6 T1
    S1000 M3
    X10 Y10
    G43 Z10 H1
    G66 P9110 R2 Z-25 F300
    X10 Y10
    X20
    G67
    G53Z0
    M5
    M9
    M30


    O9110;
    #1=#4001; . . . . . . . . . . . . . . Stores G00/G01.
    #3=#4003; . . . . . . . . . . . . . . Stores G90/G91.
    #4=#4109; . . . . . . . . . . . . . . Stores the cutting feedrate.
    #5=#5003; . . . . . . . . . . . . . . Stores the Z coordinate at the start of drilling. (In this block have I problem, when I use in main program AI Contour control,)


    G00 G90 Z#18; . . . . . . . . Positioning at position R
    G01 Z#26 F#9; . . . . . . . . . Cutting feed to position Z
    IF[#4010 EQ 98]GOTO 1; Return to position I
    G00 Z#18; . . . . . . . . . . . . . Positioning at position R
    GOTO 2;
    N1 G00 Z#5; . . . . . . . . . . . . . Positioning at position I
    N2 G#1 G#3 F#4; . . . . . . . . Restores modal information.
    M99;

  2. #2
    Join Date
    Dec 2009
    Posts
    952

    Re: Fanuc Oi - MC - Problem with AI contour control (G05.1 Q1) by macro programming

    how deep is your driiling hole?

  3. #3
    Join Date
    Jun 2009
    Posts
    146

    Re: Fanuc Oi - MC - Problem with AI contour control (G05.1 Q1) by macro programming

    That in this case is not important (Z-25)... I need to know how to use the "Stores the Z coordinate at the start of drilling from # 5003"... The "G05.1 Q1 'cause the we do not save the true value of the parameter" # 5 ".

  4. #4
    Join Date
    Dec 2009
    Posts
    952

    Re: Fanuc Oi - MC - Problem with AI contour control (G05.1 Q1) by macro programming

    when i need to drill a deep hole or when i mill a piece many times in z direction i use like this:

    N1
    #100=#5043----z absolute value
    #101=#5043-1----will go deep 1 mm from the start point i made
    G1 Z#101...
    .....
    ....
    IF[#101 LT 23] GOTO 1
    G28Z0
    M30

    So will keep going deep on z until i will have z-23 (in this case is an example for you will be #101 LT 25)

  5. #5
    Join Date
    Jun 2009
    Posts
    146

    Re: Fanuc Oi - MC - Problem with AI contour control (G05.1 Q1) by macro programming

    I would have done in such a way as written standard cycles ... My problem is basically just that, to determine the value of the parameter before that, when it comes to the desired sentence ... If it were possible to without complications switch between the "G05 .1 Q1 "and" G05.1Q0 "would be all right ... but now my machine displays an error if the program change value for" AI contour compensation ".

    This can be maybe an error of controller?

Similar Threads

  1. Fanuc macro programming, interactive
    By Lazy_Programmer in forum Machinery Manuals / Brochures
    Replies: 5
    Last Post: 04-30-2018, 02:45 PM
  2. Fanuc 3tf & Macro Programming
    By bergen13 in forum Fanuc
    Replies: 3
    Last Post: 02-15-2013, 05:02 PM
  3. Fanuc Macro-a Programming Manual
    By CHANDRU in forum Fanuc
    Replies: 4
    Last Post: 03-20-2011, 05:00 PM
  4. Replies: 2
    Last Post: 12-28-2007, 04:57 PM
  5. Fanuc Macro and G-Code Programming
    By kilogulf59 in forum Fanuc
    Replies: 3
    Last Post: 11-01-2006, 06:02 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
  •