CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-14-2007, 01:21 PM
 
Join Date: Feb 2007
Location: us
Posts: 6
Wbjr is on a distinguished road
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
File Type: txt CT.txt‎ (765 Bytes, 127 views)
Reply With Quote

  #2   Ban this user!
Old 02-17-2007, 09:10 PM
 
Join Date: Feb 2007
Location: usa
Posts: 2
jayb79 is on a distinguished road

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.
Reply With Quote

  #3   Ban this user!
Old 02-17-2007, 11:40 PM
Jarwalcot's Avatar  
Join Date: Jun 2005
Location: USA
Age: 46
Posts: 184
Jarwalcot is on a distinguished road
User Tast ! & II

See if this info helps any,

CHEERS!
Attached Files
File Type: pdf 4 Axis Programing.pdf‎ (138.8 KB, 303 views)
__________________
JR Walcott
Georgia Machine Tool Resources, LLC
Reply With Quote

  #4   Ban this user!
Old 02-19-2007, 03:35 PM
 
Join Date: Feb 2007
Location: us
Posts: 6
Wbjr is on a distinguished road

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
Reply With Quote

  #5   Ban this user!
Old 11-24-2007, 08:44 PM
 
Join Date: Nov 2007
Location: Canada
Posts: 1
OkumaDave is on a distinguished road

sorry for the very late reply, Is this still a problem??
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-26-2007, 06:59 PM
 
Join Date: Feb 2007
Location: us
Posts: 6
Wbjr is on a distinguished road

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.
Reply With Quote

  #7   Ban this user!
Old 11-30-2007, 06:26 AM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 578
broby is on a distinguished road

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.
Reply With Quote

  #8   Ban this user!
Old 06-29-2009, 07:35 AM
 
Join Date: May 2009
Location: UNITED STATES
Posts: 1
frankp01 is on a distinguished road
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.
Reply With Quote

  #9   Ban this user!
Old 08-02-2009, 07:14 PM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 578
broby is on a distinguished road

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.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 08:18 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361