586,036 active members*
3,514 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Example of a local sub on a Moriseiki CL25 Lathe
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2010
    Posts
    0

    Example of a local sub on a Moriseiki CL25 Lathe

    Hello,
    Will somebody share an example on how to call a local subprogram in a Mori Lathe?
    thanks

  2. #2
    Join Date
    Aug 2011
    Posts
    2517
    M98 P1234

    calls sub program O1234

  3. #3
    Join Date
    Nov 2010
    Posts
    0
    This was my first aproach, but for some reason didnt work ...
    N7(SPOT DRILL 3/8" X 90 GRDS)
    G28U0W0
    G54
    G0T707
    M8
    G97S950M3
    G0X0.Z.5
    Z.2
    G1Z-.15F0.001
    G0Z0.5
    M9
    G28U0W0
    M1

    N8(COBALT DRILL "M"--- 0.295")
    G28U0W0
    G54
    G0T303
    M8
    G97S950M3
    G0X0.Z.75
    Z.25
    G74Z-1.25K0.1Q30F0.0015
    G0Z.7
    M9
    G28U0W0
    M1


    (CORRIDA DE SUB)
    G54
    M98 P1001
    G55
    M98 P1001
    G56
    M98 P1001
    G57
    M98 P1001
    G58
    M98 P1001
    M99





    O1001
    N4(DESBASTE EXTERIOR)
    (CNMG431)
    G28U0.0W0.0
    G0T505
    M8
    G50S2000
    G96S300M03
    G0X.6
    Z.15
    G71P10Q20U0.00W0.00D400F0.007
    N10G1X.50
    Z-.218
    N20X.6
    M9
    G28U0.0W0.0
    M5
    M1


    N9(DESBASTE INTERIOR)
    (BORING BAR HERTEL TRIGON)
    (INSERTO TRIGON R.004)
    G28U0.0W0.0
    G0T909
    M8
    G50S2000
    G96S320M03
    G0X0.29
    Z0.05
    G71P30Q40U0.0W0.0D200F0.004
    N30G1X.332
    Z-.12
    N40ZX.29
    G0Z.05
    M5
    M9
    G28U0.0W0.0
    M5
    M1

  4. #4
    Join Date
    May 2004
    Posts
    4519
    N7(SPOT DRILL 3/8" X 90 GRDS)
    G28U0W0
    G54
    G0T707
    M8
    G97S950M3
    G0X0.Z.5
    Z.2
    G1Z-.15F0.001
    G0Z0.5
    M9
    G28U0W0
    M1

    N8(COBALT DRILL "M"--- 0.295")
    G28U0W0
    G54
    G0T303
    M8
    G97S950M3
    G0X0.Z.75
    Z.25
    G74Z-1.25K0.1Q30F0.0015
    G0Z.7
    M9
    G28U0W0
    M1


    (CORRIDA DE SUB)
    G54
    M98 P1001
    G55
    M98 P1001
    G56
    M98 P1001
    G57
    M98 P1001
    G58
    M98 P1001
    M99 <<<< Goes at end of sub
    <<<<Add M30
    <<<<Add %

    <<<<Add %
    O1001
    N4(DESBASTE EXTERIOR)
    (CNMG431)
    G28U0.0W0.0
    G0T505
    M8
    G50S2000
    G96S300M03
    G0X.6
    Z.15
    G71P10Q20U0.00W0.00D400F0.007
    N10G1X.50
    Z-.218
    N20X.6
    M9
    G28U0.0W0.0
    M5
    M1

    N9(DESBASTE INTERIOR)
    (BORING BAR HERTEL TRIGON)
    (INSERTO TRIGON R.004)
    G28U0.0W0.0
    G0T909
    M8
    G50S2000
    G96S320M03
    G0X0.29
    Z0.05
    G71P30Q40U0.0W0.0D200F0.004
    N30G1X.332
    Z-.12
    N40ZX.29
    G0Z.05
    M5
    M9
    G28U0.0W0.0
    M5
    M1
    <<<Add M99
    <<<Add %

  5. #5
    Join Date
    Aug 2011
    Posts
    2517
    hmmm, yes. basically you called the sub OK but there was no M99 at the end of the sub so it didn't come back to where it was before.

    subs must end with M99.....

  6. #6
    Join Date
    Nov 2010
    Posts
    0
    Cool guys!!

Similar Threads

  1. moriseiki lathe CL-25 wont let me chuck by ID
    By david rendon in forum Mori Seiki lathes
    Replies: 5
    Last Post: 12-15-2021, 07:44 PM
  2. Moriseiki lathe CL-25 Programming Manual
    By david rendon in forum Machinery Manuals / Brochures
    Replies: 15
    Last Post: 07-08-2018, 05:59 AM
  3. Example of how to call a local sub (Mori lathe CL25)
    By david rendon in forum G-Code Programing
    Replies: 8
    Last Post: 04-09-2012, 09:39 PM
  4. MoriSeiki SV-503 alarms HELP
    By fiearlacha in forum Mori Seiki Mills
    Replies: 3
    Last Post: 08-31-2010, 08:08 PM
  5. moriseiki MV40
    By Ghoten in forum Spanish
    Replies: 7
    Last Post: 11-19-2009, 04:50 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
  •