585,996 active members*
4,005 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > Subprograms, Okuma Lathe LT10 Osp-U100L ?
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2007
    Posts
    51

    Subprograms, Okuma Lathe LT10 Osp-U100L ?

    Hi.
    The guys selling Okuma in Denmark keeps saying that Okuma cannot use subprograms (M98-M99).
    Can anyone please confirm this, or even better, prove them wrong?
    Regards
    Kai

  2. #2
    Join Date
    May 2007
    Posts
    51
    Maybe the correct word to use in the headline would be subroutines

  3. #3
    Join Date
    Jan 2007
    Posts
    71
    Kai,
    Change M98P to CALL O and replace the M99 at the end of the subroutine with RTS. You should be golden.
    You CAN do anything, if you REALLY want to, but how many people really want to?
    Kyle

  4. #4
    Join Date
    May 2007
    Posts
    51
    Ok, thank you.

  5. #5
    Join Date
    Jan 2007
    Posts
    71
    Certainly
    You CAN do anything, if you REALLY want to, but how many people really want to?
    Kyle

  6. #6
    Join Date
    Apr 2006
    Posts
    822
    Hello Kai_DK
    If the guys that are selling the machine don't know how to use subroutines, I would be a lot worried about there level of understanding of these machines/controllers!
    Anyway to clarify the statements made...
    the equivalent of the Fanuc M98P... command is indeed "CALL O1234" where the numbers 1234 represent the subprogram number. This subprogram number can actually be any Alphanumeric upto 4 characters long, after the leading "O" (letter oh not number zero), if using alpha characters I seem to remember in one of the manuals I read long ago, that you must commence the subprogram name with an alpha char and then you could use numbers, not the other way around.
    ie Valid Names = OFRED or OCH12 or OA123
    Invalid Names would be O1ABC or O123Z etc...

    So an example program to mill a 100mm square 10mm deep might be like this...
    Assuming X0 Y0 is bottom LH corner! Z0 top surface.
    Main program...

    M3 S1000
    M8
    G0 X-20 Y-20
    G56 HA Z800
    Z10
    G1 Z-2 F1000
    CALL OSQR
    G1 Z-4 F1000
    CALL OSQR
    G1 Z-6 F1000
    CALL OSQR
    G1 Z-8 F1000
    CALL OSQR
    G1 Z-10 F1000
    CALL OSQR
    G0 Z10.
    M5
    M9
    Etc...

    OSQR (SUB TO MILL SQUARE)
    G1 G41 DA X0 F500
    Y100
    X100
    Y0
    X-20
    G40 X-20 Y-20
    RTS (This is the equiv to M99 in Fanuc)

    Another much leaner way of programming the same thing is to use the MODIN and MODOUT commands (see below)
    The MODIN command acts the same as a CALL statement and the MODOUT command cancels the MODIN Statement.
    The machine CALLS the subroutine every time a move takes place in the main program. You must use the MODOUT command at the end of the calls so that it stops calling the subroutine.
    This is much easier to program as you can easily update the depth of cuts in this program.

    M3 S1000
    M8
    G0 X-20 Y-20
    G56 HA Z800
    Z10
    MODIN OSQR
    G1 Z-2 F1000
    G1 Z-4 F1000
    G1 Z-6 F1000
    G1 Z-8 F1000
    G1 Z-10 F1000
    MODOUT
    G0 Z10.
    M5
    M9
    Etc...

    OSQR (SUB TO MILL SQUARE)
    G1 G41 DA X0 F500
    Y100
    X100
    Y0
    X-20
    G40 X-20 Y-20
    RTS (This is the equiv to M99 in Fanuc)

    Hope this information helps you get going.
    If you need more help, please ask!
    Regards
    Brian.

  7. #7
    Join Date
    May 2007
    Posts
    51
    Thank you very much for this information.
    I'm only the messenger in this matter and cannot be the judge over the matter if the shop or the guys have been given the wrong information :drowning:

Similar Threads

  1. G71 Threading for Okuma Lathe
    By pedgette in forum G-Code Programing
    Replies: 9
    Last Post: 04-12-2020, 08:00 PM
  2. Okuma CNC Lathe manuals
    By jfc11 in forum Okuma
    Replies: 0
    Last Post: 10-12-2007, 01:59 AM
  3. 2-1/2 External NPT on Okuma Lathe
    By jdr1961 in forum G-Code Programing
    Replies: 2
    Last Post: 02-15-2007, 04:12 AM
  4. need help okuma howa lathe
    By mike10 in forum CNC Tooling
    Replies: 1
    Last Post: 09-17-2006, 02:10 AM
  5. Okuma Lathe question
    By dartplayer1 in forum DNC Problems and Solutions
    Replies: 15
    Last Post: 08-11-2006, 08:12 AM

Posting Permissions

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