586,659 active members*
3,763 visitors online*
Register for free
Login
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2007
    Posts
    6

    Okuma Lc40 2 turrett problem

    Any help would be appreciated. I have been knocking my head for several days now on this problem. Thanks Walter
    Machine: Okuma Lc40 with OSP5000 and a barfeeder
    I have attached the G-code if someone would like to look at it.
    What I am doing is feeding in 2.5"TS, facing it, feeding, and parting it off. We get 4 pieces and some drop.
    The program worked fine until I added the Lower turrett for a parts catcher.
    It was kind of funny, it was a race to see which turrett would get done first.
    We made a bracket to hold a 3"Dia.x18" piece of pvc pipe and mounted it on the B turrett.
    I have tried using P codes and M100 to sync the 2 turrets. The M100 seemed to work the best until the program looped for round 2. The P codes did'nt like the 2nd loop either.
    I thought of calling a subroutine at the correct timing but I could'nt get a subroutine to work. Here is what I tried for one of the subroutines.
    .
    .
    CALL OGET1
    .
    .
    CALL OPUT1
    .
    M02
    OGET1
    G0X0.0
    G0Z6.0
    RTS
    OPUT1
    GOX12.0Z36.0
    RTS
    Attached Files Attached Files
    • File Type: txt CT.txt (765 Bytes, 144 views)

  2. #2
    Join Date
    Feb 2007
    Posts
    2
    Do the p codes work? If they do then you can use negetive P codes to "reset" the codes.
    Ex: P-10(at the begining)
    You could try negetive M100s, but i dont think it will work.

  3. #3
    Join Date
    Jun 2005
    Posts
    194

    User Tast ! & II

    See if this info helps any,

    CHEERS!
    Attached Files Attached Files
    JR Walcott
    Georgia Machine Tool Resources, LLC

  4. #4
    Join Date
    Feb 2007
    Posts
    6
    Thanks for the suggestions I will give them a try and let you know if it works.
    I took the loop out and copied that program group 5 times and got it to work.
    I had to remove the G96's before it would run. I will go back rewrite the program and try to get the loop to work with your suggestions and let you know. Thanks

  5. #5
    Join Date
    Nov 2007
    Posts
    1
    sorry for the very late reply, Is this still a problem??

  6. #6
    Join Date
    Feb 2007
    Posts
    6
    No problem Dave, I did get it working. Works great. I had several problems. First was I forgot you can't use constant speed cutting when you use both turrets. The P codes did work but I had to have matching p codes in both the upper and lower turret sections of the program so they could get in sync.

  7. #7
    Join Date
    Apr 2006
    Posts
    822
    Hi Wbjr,
    You can use constant cutting speed when using synchronised turning!
    On turret A (G13) you need to program G96 G110 S180 P0100 (where S180 is the surface speed required) This will then set the machine to "Follow" the tool on turret A for it's RPM calculations. On turret B you will also need to program the same codes ie G96 G110 S180 P0100
    If you want to "Follow" the B turret for your speed control use G111.
    This is all from memory at this stage, and I have not had to write such a program for ages, so I think is the way to go...
    I used to program an Okuma LC20M many years ago, boy what a great machine!
    4 Axis with live tooling in the top turret, In process gauging, and a small capacity robot also! All this in a lathe produced in 1985!! Sadly the machine is no longer with us, but man o man has it done some truly great work!
    Hope this helps
    Brian.

  8. #8
    Join Date
    May 2009
    Posts
    1

    Need P code understanding!!

    I have been progamming vertical cnc mills for the past 8 years. I have changed jobs and they have a 4 axis okuma lathe. It has been a while but the last time I programmed a lathe it wa 2 axis. The p codes are giving me problems. I was hoping someone could give me a little explanation of th p codes.

  9. #9
    Join Date
    Apr 2006
    Posts
    822
    Quote Originally Posted by frankp01 View Post
    I have been progamming vertical cnc mills for the past 8 years. I have changed jobs and they have a 4 axis okuma lathe. It has been a while but the last time I programmed a lathe it wa 2 axis. The p codes are giving me problems. I was hoping someone could give me a little explanation of th p codes.
    Hi Frank,
    "P" codes are used to synchronize actions between the upper and lower turrets.
    i.e. when selecting Gear range, Spindle Speeds and Constant Surface Speed actions, the machine can only action one thing at a time, i.e. one gear range or one spindle speed, M41 or M42 NOT both at the same time.
    The P code is a constantly increasing number within the program, you can not use a lower number unless it is in a subprogram. The P codes are reset at program end.

    The program below is an example of using P codes to synch both turrets and to control the order of processing between the turrets. (includes milling in this example)

    $LC20-SAMPLE.MIN%
    G14
    GOTO N1
    DESCRIPTION - WEAR RING
    MATERIAL EN14
    DWG NO-
    GRP NO-
    MAT DIA- 132/98
    CUT LEN- 250
    DWG REV-
    DATE OF 1ST WRITE
    DATE OF LAST UPDATE
    VARIABLES- V1 PART COUNTER PER BAR
    V32 TOTAL BATCH COUNTER
    NOTE---
    TURN OD OF BILLET TO OBTAIN UNIFORM SURFACE TO HOLD ON TO.
    FACE END OF EACH BILLET AND ZEROSET TO 9.79 BEFORE STARTING
    BECAUSE FACING IS NOT DONE AT START OF PROGRAM.
    RESET V1 TO 0 BEFORE STARTING EACH BILLET.
    CHUCK JAWS- 114DIA 35DEEP
    TOOLS
    BOTTOM TURRET
    T2 STD TNMG ROUGH TURN OD
    T3 STD TNMG FINISH TURN OD
    T6 CATCHER
    TOP TURRET
    T3 MILLING HEAD WITH 6MM BALL NOSE SLOT DRILL
    T5 BORING BAR 25DIA 75MM LONG
    T6 3.10MM PARTER
    T7 BORING BAR 25DIA 75MM LONG
    N1 (START)
    N0001 G13
    N0002 P0010
    /VZSHZ=V1*[-13.2]
    N0003 G00 X500 Z800
    N0004 G14
    /VZSHZ=V1*[-13.2]
    N0005 P0020
    N0006 G00 X300 Z400
    N0007 G50 S2500
    N0100 M90
    N0300 G13
    N0301 G97 S704 M41 M3 M8 P0030
    N0302 G00 X98 Z11.8 T050505
    N0303 G85 N0304 D4 F0.27 U0.5 W0.1P35
    N0304 G81
    N0305 G00 X116.173
    N0306 G01 Z9.79 G41 E0.3
    N0307 G02 X115.207 Z9.419 K-0.5 E0.45
    N0308 G01 X114 Z7.166 E0.3
    N0309 Z-3.2
    N0310 X90 E0.45
    N0311 Z-3.21 E0.3
    N0312 G40
    N0313 G80
    N0314 G00 X89
    N0316 Z400
    N0317 X116 Z400 T0707 M65 M66
    N0400 G14
    N0401 G97 S704 M41 M3 M8 P0030
    N0402 G00 X133.4 Z11.8 T020202
    N0403 G85 N0404 D4 F0.27 U0.5 W0.1P35
    N0404 G81
    N0405 G00 X122.27
    N0406 G01 Z9.79 G42 E0.27
    N0408 X125.00 Z7.426 E0.27
    N0409 Z-3.3
    N0410 X135 E0.405
    N0411 Z-3.31 E0.27
    N0412 G40
    N0413 G80
    N0414 G00 X133.5
    N0416 X300 Z400 T0200
    N0417 X300 Z12 T030303
    N0500 G13
    N0501 G97 S892 M41 M3 M8 P0040
    NFID G00 X116 Z11.8 T070707
    N0503 G87 N0504 P45
    N0504 G81
    N0505 G00 X116.573
    N0506 G01 Z9.79 G41 F0.22
    N0507 G02 X115.607 Z9.419 K-0.5
    N0508 G01 X114 Z6.79
    N0509 Z3
    N0510 X116.142 Z-1
    N0511 Z-3.2
    N0512 X90
    N0513 Z-3.21
    N0514 G40
    N0515 G80
    N0516 G00 X89
    N0517 Z400
    N0518 X300 Z400 T0300 M65 M66
    N0600 G14
    N0601 G97 S892 M41 M3 M8 P0040
    NFOD G00 X133.5 Z11.8 T030303
    N0603 G87 N0604 P45
    N0604 G81
    N0605 G00 X122.27
    N0606 G01 Z9.79 G42 F0.25
    N0608 X125.00 Z7.426
    N0609 Z-3.3
    N0610 X135
    N0611 Z-3.31
    N0612 G40
    N0613 G80
    NFF G00 X127 Z9.82
    N0615 G01 X112 F0.20
    N1715 G00 X300 Z400 T0300 M5 M63 M9 M64 P0050
    N1716 X300 Z300 T0606
    N0700 G13
    N0701 P0060
    N0702 M110
    N0703 G94 M146 M15 M08
    NMILL G00 X193.5 Z8.39 T0303 SB=1500M242 M64
    N0705 X130 C0 M13
    N0706 M147
    N0707 G01 X118.8 F60
    N0708 G02 X110.8 Z4.39 K-4
    N0709 G01 Z-3.5
    N0710 G00 Z10
    N0711 M146
    N0712 X130 C90 M15
    N0713 Z8.39 M147
    N0714 G01 X118.8
    N0715 G02 X110.8 Z4.39 K-4
    N0716 G01 Z-3.5
    N0717 G00 Z10 M146
    N0718 X130 C180 M15
    N0719 Z8.39 M147
    N0720 G01 X118.8
    N0721 G02 X110.8 Z4.39 K-4
    N0722 G01 Z-3.5
    N0723 G00 Z10 M146
    N0724 X130 C270 M15
    N0725 Z8.39 M147
    N0726 G01 X118.8
    N0727 G02 X110.8 Z4.39 K-4
    N0728 G01 Z-3.5
    N0729 G00 Z10
    N0730 G95 M12 M146 M08
    N0731 M109
    N0732 X300 Z400 T0300 M9
    P62
    G13
    NPART G97 S457 M41 M03 M08 P0070
    N0801 G00 X142.5 Z-3.12 T060606 P0072
    N0802 X126 P0074G96 G110 S210
    N0803 G73 X121.85 Z-3.12 D66 L66F0.08 E0.467
    N0804 G00 Z-0.61
    N0805 G01 X125.00 F0.08
    N0806 X121.859 Z-3.12
    N0807 X112
    N0808 G00 X126
    N0809 X142.5 P0076
    N0810 X300 Z400 T0600
    N0811 X300 Z400 T0500 M65 M66
    N0900 G14
    NPC G97 S457 M41 M03 M08 P0070
    N0902 G00 X0 Z11.8 T060606 P0072
    N0903 X0 Z-10 P0074G96 G110 S210
    N0904 Z10 P0076
    N0905 G00 X300 Z400 T0600
    N0906 M05 M09 P0080
    N1000 P0090
    N1001 M91 V32 =V32+1 V1 =V1+1
    N1002 M02


    Hope this helps.
    Regards,
    Brian.

Similar Threads

  1. Okuma LC-20 Threading problem
    By Gunner in forum DNC Problems and Solutions
    Replies: 13
    Last Post: 12-14-2011, 05:11 AM
  2. OKUMA LC40 OSP5000L Communication problem
    By Max Moreno in forum DNC Problems and Solutions
    Replies: 5
    Last Post: 08-22-2010, 07:30 AM
  3. okuma LB-15 taping problem
    By mikul in forum DNC Problems and Solutions
    Replies: 3
    Last Post: 02-14-2007, 09:33 AM
  4. Okuma communication problem
    By stude8 in forum DNC Problems and Solutions
    Replies: 3
    Last Post: 02-08-2007, 07:44 AM
  5. Anyone know anything about an Okuma LC40?
    By fastturbovet in forum Uncategorised MetalWorking Machines
    Replies: 4
    Last Post: 11-16-2006, 12:45 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
  •