![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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 |
|
#4
| |||
| |||
| 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 |
|
#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
| ||||
| ||||
| 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
| |||
| |||
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
| ||||
| ||||
"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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Okuma LC-20 Threading problem | Gunner | Machine Problems, Solutions , Wireless DNC, serial port | 13 | 12-13-2011 10:11 PM |
| OKUMA LC40 OSP5000L Communication problem | Max Moreno | Machine Problems, Solutions , Wireless DNC, serial port | 5 | 08-22-2010 01:30 AM |
| okuma LB-15 taping problem | mikul | Machine Problems, Solutions , Wireless DNC, serial port | 3 | 02-14-2007 02:33 AM |
| Okuma communication problem | stude8 | Machine Problems, Solutions , Wireless DNC, serial port | 3 | 02-08-2007 12:44 AM |
| Anyone know anything about an Okuma LC40? | fastturbovet | General Metal Working Machines | 4 | 11-16-2006 05:45 AM |