Results 1 to 9 of 9

Thread: M65 and M66 codes description

  1. #1
    Registered
    Join Date
    May 2010
    Location
    Russia
    Posts
    82
    Downloads
    0
    Uploads
    0

    M65 and M66 codes description

    Hi!
    I am new in Okuma. Recently I have got 2 LC20 with double turret and OSP5000-G. I tried to change tools and in one sample of program found how to do it.
    M65 and M66 command did it. But I did not find any description in my manuals about this commands. Can anybody help me to explane what this commands do?


  2. #2
    Registered Algirdas's Avatar
    Join Date
    Mar 2009
    Location
    Lithuania
    Posts
    1049
    Downloads
    0
    Uploads
    0
    M66 is dangerous - turret rotation (tool indexing) is allowed not waiting nor turret stop, nor axis limit signal.
    You can change the tool while turret is sitting on Z and X user defined limits normally


  3. #3
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1713
    Downloads
    0
    Uploads
    0
    M65/M66 is an option to allow you to index the turret
    anywhere (even if a crash would occur when indexing).
    You don't really need it.

    You can index tools easily. Just move turret to maximum X or Z
    and then issue tool command. i.e.....

    G00 X20.0
    T0101


  4. #4
    Registered
    Join Date
    May 2010
    Location
    Russia
    Posts
    82
    Downloads
    0
    Uploads
    0
    OK, hence please tell me how can I change tool in program?
    The first I need to let axis pass to limit. And only after that I can change the tool.
    Can you give me the peace of code to do it?
    May the first command will be like this G28X..Z.. (go to tool change place)
    Then some like M6T2
    And the the procgam continuing G0X..Z..
    Is it right?


  • #5
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1713
    Downloads
    0
    Uploads
    0
    I already gave you the code
    M6 is for a mill. not required on a lathe.
    Okuma is not Fanuc. It doesn't use G28

    You just rapid to any large number. the machine will travel to it's physical limit.
    then T then tool number

    that's all

    i.e....
    $TEST.MIN%
    G13
    G140
    G0 X20.0
    T0101
    G96 S200 M3 G110
    G00 X... Z.... M8
    (the rest of the program here)
    G0 X20.0 Z10.0 M9
    T0100 M5
    M30
    %


  • #6
    Registered
    Join Date
    May 2010
    Location
    Russia
    Posts
    82
    Downloads
    0
    Uploads
    0
    Thank you
    I'll go check it on Monday


  • #7
    Registered
    Join Date
    May 2010
    Location
    Russia
    Posts
    82
    Downloads
    0
    Uploads
    0
    Your code works. The problem was in G1 command.
    I wrote:
    G1X300F200 and the message alarm about increase max X value appears.
    If i write something like
    G0X300
    T0202
    ....
    then it works.


  • #8
    Registered Algirdas's Avatar
    Join Date
    Mar 2009
    Location
    Lithuania
    Posts
    1049
    Downloads
    0
    Uploads
    0
    On every machine G1 requires feederate, or last defined feederate will work. sure, error occurs in case, when feed per revolution is active and spindle is stopped. G0 is rapid traverse, no need to define feederate by command and no need of spindle rotation


  • #9
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1713
    Downloads
    0
    Uploads
    0
    on Okuma in G1 I think it will check X or Z end point to make sure it is inside the limits.
    in G0 there is no checking.


  • Similar Threads

    1. New Machine Build- What machine description to use?
      By mx2 in forum Mastercam
      Replies: 7
      Last Post: 07-01-2011, 01:14 AM
    2. Need Help!- G codes and M codes for Mazak Quick Turn T-2
      By sauli in forum Mazak, Mitsubishi, Mazatrol
      Replies: 0
      Last Post: 05-23-2011, 12:22 PM
    3. Need Help!- encoder description
      By guhl in forum Fanuc
      Replies: 3
      Last Post: 05-23-2010, 04:59 PM
    4. Need Help!- Need full list of G CODES AND M CODES FOR FANUC 21I
      By SonnyTees.com in forum G-Code Programing
      Replies: 3
      Last Post: 02-23-2010, 11:27 AM
    5. Need Help!- CNC PROGRAMMER JOB DESCRIPTION?
      By gcrudgington in forum General CAM Discussion
      Replies: 0
      Last Post: 06-16-2008, 04:27 PM

    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.