586,556 active members*
3,295 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > M65 and M66 codes description
Results 1 to 9 of 9
  1. #1

    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
    Join Date
    Mar 2009
    Posts
    1982
    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
    Join Date
    Aug 2011
    Posts
    2517
    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
    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. #5
    Join Date
    Aug 2011
    Posts
    2517
    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. #6
    Thank you
    I'll go check it on Monday

  7. #7
    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. #8
    Join Date
    Mar 2009
    Posts
    1982
    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. #9
    Join Date
    Aug 2011
    Posts
    2517
    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. What machine description to use?
    By mx2 in forum Mastercam
    Replies: 7
    Last Post: 07-01-2011, 06:14 AM
  2. 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, 05:22 PM
  3. encoder description
    By guhl in forum Fanuc
    Replies: 3
    Last Post: 05-23-2010, 09:59 PM
  4. 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, 05:27 PM
  5. CNC PROGRAMMER JOB DESCRIPTION?
    By gcrudgington in forum Uncategorised CAM Discussion
    Replies: 0
    Last Post: 06-16-2008, 09:27 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
  •