587,306 active members*
3,734 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2013
    Posts
    31

    G68 Rotation Help

    Hi to you all, been doing a few components on the mill lately which would have benefited from the G68 Rotation command but I am having problems with it. I keep getting an alarm stating ROTATION FORMAT ERROR.

    The program is below, the control is a Yasnac which I believe is very similar to Fanuc if not identical. I believe the Yasnac needs the Q2 on the G68 line, I might be wrong but I have to use Q2 with G52 Datum shift and if I don't use Q2 with G64, I get an illegal G code alarm.


    10(G68 ROTATION)
    N1 M98 P8000 T10 (SAFETY START SUB PROGRAM)
    M6 (DIA3MM EM)
    M8
    G0 G90 G54 X0. Y15. S10000 M3
    G43 Z2. H10 D10
    M98 P11 (CALL PROFILE SUB PROGRAM)
    G68 Q2 X0. Y0. R180.
    M98 P11
    G68 Q2 X0. Y0. R270.
    M98 P11
    G68 Q2 X0. Y0. R360.
    M98 P11
    G69
    G00 G90 Z10.
    M98 P8000
    G53 Y0.
    M30

    :11(PROFILE)
    G0 Z2.
    G1 Z-10 F500
    G41 X-2.780 D10
    Y13.97
    G3 X2.780 Y13.970 I2.780 J0.
    G1 Y15.
    G40 X0.
    G00 Z10.
    M99
    %

    Any help appreciated.

    Thanks

  2. #2
    Join Date
    Mar 2003
    Posts
    2932
    Looks like no Q2 allowed, and you should command G69 before the next G68.

    According to the I-80 manual, it looks like the format should be:

    G68 Xxxx.xxxx Yyyy.yyyy Raaa.aaa
    M98 P11
    G69
    G68 Xxxx.xxxx Yyyy.yyyy Raaa.aaa
    M98 P11
    G69
    G68 Xxxx.xxxx Yyyy.yyyy Raaa.aaa
    M98 P11
    G69
    ...
    ...
    ...

  3. #3
    Join Date
    Jul 2013
    Posts
    31
    Thanks dcoupar, I will give that a go when I get back to work tomorrow.

  4. #4
    Join Date
    Jul 2018
    Posts
    12
    FANUC G68 ROTATE COORDINATE MAIN PROGRAM & SUB PROGRAM EXAMPLE
    August 08, 2018 - FANUC G68 ROTATE COORDINATE SYSTEM [M]



    MAIN PROGRAM

    N10 G54 X0 Y0 ;
    N20 M06 T05 ;
    N30 G43 H5 ;
    N40 M03 S1500 ;
    N50 M08 ;
    N60 G98 F300 ;
    M98 P034321 ; sub program call
    N70 G00 Z100 ;
    N80 M05 M09 M30 ;

    SUB PROGRAM

    O4321
    N10 G91 G68 X10 Y10 R22.5 ;
    N20 G90 X30 Y10 Z5 ;
    N30 G01 Z-5 ;
    N40 X47 ;
    N50 G00 Z5 ;
    N60 M17 ;

    DESCRIPTION OF PROGRAM
    Main program
    N10- Work co-ordinate system command ( Offset point) , where X0 and Y0
    N20- Tool change command , select tool no 5
    N30- Tool height offset compensation H5(we set tool height of z axis )
    N40- Spindle on clockwise at speed 1500 rpm
    N50- Coolant on
    N60- Feed rate per minute F300
    M98- Sub program call , P03- no same operation repeat ,4321- no. of sub program.
    N70- Rapid command , where Z100 [ tool up ]
    N80- Spindle off , coolant off , main program end
    Sub program
    N10- Incremental co-ordinate command , rotate coordinate system command where X10 , Y10 and angle of rotation R22.5
    N20- Absolute co-ordinate command , X axis distance count from 0 to starting position ,Y at same place 10 and tool is 5 mm up.
    N30- linear interpolation command , cutting depth is 5
    N40- Operation end position 47 along X

    my link is
    http://www.hdknowledge.com/2018/08/f...m-example.html

Similar Threads

  1. MA 500 STOPPING AFTER B ROTATION
    By mopar in forum Okuma
    Replies: 2
    Last Post: 02-13-2012, 10:27 PM
  2. Why no rotation?
    By sml2010 in forum Mach Software (ArtSoft software)
    Replies: 3
    Last Post: 12-20-2011, 06:53 AM
  3. Coordinate Rotation G68
    By dougtyler in forum Fanuc
    Replies: 10
    Last Post: 09-21-2010, 05:00 PM
  4. rotation
    By marcT in forum G-Code Programing
    Replies: 4
    Last Post: 01-30-2008, 07:12 AM
  5. G&L rotation
    By abigg in forum G-Code Programing
    Replies: 0
    Last Post: 10-02-2007, 01:26 PM

Posting Permissions

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