584,899 active members*
3,396 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > Whats wrong with my program? LT10-M/U100L
Results 1 to 11 of 11
  1. #1
    Join Date
    Nov 2015
    Posts
    10

    Angry Whats wrong with my program? LT10-M/U100L

    Hi! Could somebody please help me to make this program work :drowning:

    Machine Okuma LT10-M/U100L


    Okay... here's the problem, I'm a complete noob when it comes to these twin spindle/turret machines and lathes in general.
    We had a guy here to help us make a basic program. Then I made a new program and added everything that is on the
    G14 side. The program works fine until bar change. I've tried to put P codes all over the place and tried M100 and many other
    things but It's impossible to know what to do since my instructions don't tell. So the program works until it's supposed to start the bar change.
    Theres a comparison sentence, that checks if the bar change signal is on. (FMB bar feeder) The program stops at >>G140(see program
    below). I've had S M sync error and also no error at all, machine just stops depending where P or M100 codes are. I've also had an error that
    says something about the other side of the program waiting M2 and simultaneusly the other side changed spindle mode.
    Yeah, it's a problem but how to fix it. I could move the entire bar change program to the beginning of the program,
    but then I'd have a unnecessary turning operation(G14) at the beginning of each bar. Please help!

    here's the program: (I know it's messy)

    G14
    G141
    G50 S2500
    VZSHZ=89.5
    T0101 G95 G97 S1600 M3 M42
    G0 X17.8 Z2 M8
    G1 X22.3 Z-0.25 F0.3
    Z-3.7
    X24.5
    X25 Z-3.95
    Z-5
    X27 M9
    G0 X999 Z999 M5
    G145
    G144
    G145
    G144
    G141
    P10
    G13 Drill a hole trough the bar(these are not actual comments on the program)
    G140
    G50 S2500
    M216
    M93
    VZSHZ=60
    T0909 M5 G94
    G0 Z-19 X999
    X27
    M110
    G0 C0
    M147
    SB=900 M13 M8
    VLMON[1]=1
    G1 X21 F=SB*0.12
    X-30 F=SB*0.15
    VLMON[1]=0
    G0 X999 M9
    M12
    M146
    M109
    G145 Bring the part to the parts catcher
    G0 W250
    M77
    M249
    G4 F1
    M76
    G0 W999
    G144
    VZSHZ=182
    T1111 M5 Feed the bar against a ???(don't know the word)
    G0 Z5 X999
    X0 Z0
    M84 M103
    G4 F1
    M83 M104
    G0 Z5
    X999 Z5
    T0101 G95 G97 S1500 M3 M42 Remove chip after side drill
    G0 X25.3 Z3
    G1 Z-29 F0.4
    G0 X999 Z-119
    NHAKU G145 sub spindle advance
    G0 W220
    G94
    M141 M247
    VLMON[2]=32
    G1 W152 F2000 G94 M288
    VLMON[2]=0
    M248
    M246
    T0101 G97 S1500 M3 Parting of
    G95
    G0 Z-119 X999
    X27 M8
    G1 X22.9 F0.12
    G0 X27
    Z-121
    G1 X23 Z-119
    G0 X27
    Z-117
    G1 X23 Z-119
    X15
    G0 X15.2
    G97 S2200 M3
    G1 X5
    G0 5.2
    G97 S2500 M3
    G1 X0 F0.06
    VLMON[4]=32
    G1W157 F0.1
    VLMON[4]=0
    G0 X999 W999 M9
    M150
    G144
    M5
    G0 X999 Z50
    G13
    G141
    VZSHZ=-89.5
    G50 S2500
    G95
    M42
    T0808 G97 S2700 M3 M66 U drill
    G0 X250 Z200
    G0 X0 Z4 M8
    VLMON[5]=2
    G1 Z-5.5 F0.08
    G0 Z2
    G0 X-8.2
    G1 X2.7 Z-0.75
    X-4
    X0 Z-5.35
    Z-42.5
    G0 Z4
    VLMON[5]=0
    X150 Z200 M9
    T0505 G97 S100 M3 M66 M41 thread
    G0 X0 Z5 M8
    VLMON[6]=64
    G1 Z-37.5 F2.5
    M5
    G1 Z5 F 2.5 M4 S100
    VLMON[6]=0
    M215
    G0 Z200 X999 M9
    Z500 X999 M5
    M42
    IF [VIRD[0266]EQ 1] NALKU Compare bar end signal, if "ON" change bar and top cut, if not, go to end
    GOTO NLOPP
    NALKU
    G13
    G140 <-----------------------------Stops here!
    VZSHZ=182
    M185
    T0101 G97 S100 M3 M42 Bar change
    M84 M103
    M101
    M83 M104
    G97 S1500 M3
    G0 Z-119 X999
    X27 M8
    G1 X22.9 F0.1
    G0 X27
    Z-117
    G1X23 Z-119
    G0X27
    Z-121
    G1X23 Z-119
    X0
    G0 X999 Z-119 M5
    NLOPP
    M42P10
    M2

  2. #2
    Join Date
    Jun 2008
    Posts
    372

    Re: Whats wrong with my program? LT10-M/U100L

    Have you tried a small dwell?

  3. #3
    Join Date
    Nov 2015
    Posts
    10

    Re: Whats wrong with my program? LT10-M/U100L

    At some point I did try, but I've tested so many variations now that I cant remember what else was there at the time. I'll try it again. It may be that I just have to move the bar change program to the top and then start G13/G14 sides simultaneusly with P10 and then add P20 just before M2 on both programs. Because everyting else works in sync, exept the jump to bar change. But still.. it would be nice to know why doesn't it work.

  4. #4
    Join Date
    Apr 2009
    Posts
    1262

    Re: Whats wrong with my program? LT10-M/U100L

    You do not have balanced G 140/G141 commands on both of your turrets. They will work like P codes on your machine and need to have them balanced or it will "hang".

    Best regards,

  5. #5
    Join Date
    Nov 2015
    Posts
    10

    Re: Whats wrong with my program? LT10-M/U100L

    Oh.. I guess sometimes one can't see the forest for the tree. Thank you for your help. I'll try to run it again tomorrow and see if I can make it to work. :-)

  6. #6
    Join Date
    Nov 2015
    Posts
    10
    Quote Originally Posted by hamaf View Post
    Oh.. I guess sometimes one can't see the forest for the tree. Thank you for your help. I'll try to run it again tomorrow and see if I can make it to work. :-)
    No, I can't make it work. It seems that the problem is that I cannot go back to G13/G140 mode after I've gone to G13/G14-G141 mode. What's up with that?

  7. #7
    Join Date
    Aug 2011
    Posts
    2517

    Re: Whats wrong with my program? LT10-M/U100L

    you can, you just need to know how ;-)

    to swap back to the left side after finishing the right side, put this crap at the end of each program.

    end of top turret program
    -------------
    N173 M5
    P173
    G97 S500 P174
    G140 P175
    ( )
    N180
    P180


    end of lower turret program
    ------------
    N173 M5
    P173
    G97 S500 P174
    G140 P175
    ( )
    N180
    P180


    I can't advise on bar feeder issue I never had one to play with.
    LT's are a piece of junk with all their complex B.S. codes. I'm glad I got the fu*k out of there and retired at the end of June. It's a relief to not have to deal with those stupid alarms ;-)

    I could probably send you a complete working program privately if you need.
    Send me a PM with your email address....

  8. #8
    Join Date
    Nov 2015
    Posts
    10

    Smile Re: Whats wrong with my program? LT10-M/U100L

    HAHA! :-D I've had this machine about 3 weeks now and I'm already losing my mind. I'm used to Heidenhain TNC520 (Mill) wich is in my opinion is easiest of all cnc controls. One can actually get some parts done and fast. Not fight the control all the time. I guess I just have to keep learning. I'll send you my email.

    Thank you very much!

  9. #9
    Join Date
    Apr 2009
    Posts
    1262

    Re: Whats wrong with my program? LT10-M/U100L

    There are some basic rules to follow:

    G96, G138, M110, nose comp, and LAP cannot be active when trying to switch spindle modes.

    If you are getting an alarm please post it for more details on what is occurring.

    If you are not getting any alarms, then you are most likely in a P-code & G-code loop. For example A-turret is waiting on G140 command and B-turret cannot get to G141 command due to P-code waiting command.

    Simplest way to program these is to treat them like 2 machines. A-turret on Left and B-turret on right (of course because it can't go left) and use timing commands ONLY before the transfer to the second spindle when the waiting is absolutely needed. This eliminates 90% of your timing issues. When they are in separate spindle modes, NO timing codes are needed.

    Best regards and happy birthday by the way!

    PS: your G144/G145 commands should be balanced as well.

  10. #10
    Join Date
    Nov 2015
    Posts
    10

    Re: Whats wrong with my program? LT10-M/U100L

    Valuable information.. Thanks! The problem is solved now and everything works great! Thank you everyone for your help! I now have double tools on some parts and the machine has run twice 16 hrs lights out! Probably would go more, but can't fit more bars. Awesome!

    The reason I had to drill and tap at the G13/G141 side is because there's not enough room to fit long drills and taps to B turret or A turret(G140 side) This is temporary, I just need to get different tool holders and then they'll fit. The program is way too slow as it is. And it is quite stupid to do this simple part like this. Alot of unnecessary movement.

    PS How to edit my "Date of birth" Donno how that date got there.

    Quote Originally Posted by OkumaWiz View Post
    There are some basic rules to follow:

    G96, G138, M110, nose comp, and LAP cannot be active when trying to switch spindle modes.

    If you are getting an alarm please post it for more details on what is occurring.

    If you are not getting any alarms, then you are most likely in a P-code & G-code loop. For example A-turret is waiting on G140 command and B-turret cannot get to G141 command due to P-code waiting command.

    Simplest way to program these is to treat them like 2 machines. A-turret on Left and B-turret on right (of course because it can't go left) and use timing commands ONLY before the transfer to the second spindle when the waiting is absolutely needed. This eliminates 90% of your timing issues. When they are in separate spindle modes, NO timing codes are needed.

    Best regards and happy birthday by the way!

    PS: your G144/G145 commands should be balanced as well.

  11. #11
    Join Date
    Apr 2009
    Posts
    1262

    Re: Whats wrong with my program? LT10-M/U100L

    4 speed up tricks:

    When doing your rapid move away from the part to index, put M203 on that line. It will allow the turret to unclamp during the rapid move. EX:G00 X500 Z500 M203
    On your tool index line place the X and Z coordinates on the same line. This will allow your turret to rotate to the correct position, and then rapid towards the part while the turret is clamping up. EX:T010101 X50 Z5

    Those 2 are good for about 1.5 seconds per index.

    On your M3 or M5 lines add in the M63 command. It will allow you to do the spindle start or stop during the move rather than waiting for it to complete before the rapid move. EX: G0 X500 Z500 M203 M5 M63

    Good for a lot more seconds 15 at least in most cycles.

    Last tip: The okuma will "sort" M codes and prevent mis-application so use more than one in the same line to save time: EX:G00 X50 Z5 M3 M42 M8 G97 S2000 M63 T010101
    This will allow the coolant to come on, will select high range, start spindle , and orient turret. Then it will clamp the turret and finish accelerating the spindle as it rapids towards the part.
    Don't worry about the turret being fully clamped. If it is not, when you switch to a cutting mode, an alarm will occur if the turret isn't clamped within 1/2 second.

    Best regards and have fun "hot rodding" it!

    PS: You need to go to your user profile to edit your stats. My PM inbox has been cleaned out now if you need to contact me.

Similar Threads

  1. whats wrong?
    By zowex in forum Stepper Motors / Drives
    Replies: 9
    Last Post: 01-15-2012, 10:33 PM
  2. Can someone look at this file, and tell me whats wrong?
    By blakemachine in forum Mastercam
    Replies: 3
    Last Post: 07-30-2009, 05:35 AM
  3. Replies: 6
    Last Post: 12-03-2007, 01:32 PM
  4. whats wrong with my computer?
    By keebler303 in forum Computers / Desktops / Networking
    Replies: 6
    Last Post: 11-30-2006, 12:28 AM

Tags for this Thread

Posting Permissions

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