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 > Machine Problems, Solutions , Wireless DNC, serial port


Machine Problems, Solutions , Wireless DNC, serial port Need help with your Machine or need a Machining solutions for , Serial Port, Cable problems between PC and all others DNC problems disucss them here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-05-2005, 10:52 AM
 
Join Date: Feb 2005
Location: USA
Posts: 9
dartplayer1 is on a distinguished road
Question Okuma Lathe question

Can anyone tell me how to loop a program a given number of times?

Control is OSP5000L-G


Thanks for the help
Tony
Reply With Quote

  #2   Ban this user!
Old 05-05-2005, 11:14 AM
 
Join Date: Sep 2003
Location: United States
Posts: 64
brtlatjgt is on a distinguished road

Do you need to step over on the z axis and repeat or just recut same area?
Reply With Quote

  #3   Ban this user!
Old 05-05-2005, 11:26 AM
 
Join Date: Feb 2005
Location: USA
Posts: 9
dartplayer1 is on a distinguished road

brtlatjgt,

What I need to do is run the whole program 10 times.

We have a bar puller set up but the operator is having to push cycle start after every part but we would like to loop the program 10 times because that is the number of parts we can get out of one stick of material then we could have him run another machine at the same time.



Thanks for your help
Tony
Reply With Quote

  #4  
Old 05-05-2005, 11:42 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

Do you have custom macro option, G65? you can call a routing by (L)iteration number of times, the custom macro also accepts 'argument assignments' so it is possible to run the same sub-routine with values for different parts etc.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 05-05-2005, 11:54 AM
Chris D's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 390
Chris D is on a distinguished road
Pretty easy I believe...

I am not 100% sure if this would work on an OSP, but it works fine on FANUC.

Change your main program to a sub by ending it with an M99 instead of the M30 (or M02).

Now create a main program that looks something like this...

O2005
M98 P2006 L10
M30

If you are not familiar with FANUC codes I will explain a bit more...

O2005 - Program number of the main program - I don't know if OSP needs this

M98 P2006 L10 - M98 Call subprogram, P2006 is the sub program number which is what used to be your main program - I am calling O2006, finally L10, calls the subprogram 10 times.

M30 is the program end command.

There are variations on the subprogram calling command even on FANUC controls. Some use the form of

M98 P200610, in this case M98 is the same and the P address specifies two items..

P2006 is the program number as before, but the trailing two digits specify the number of loops - 10 in this example.

You will of course need to look at your OSP programming manual to get their version of the codes - but I have a hunch they will be very similar.

Hope this helps!

Chris
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-05-2005, 12:45 PM
 
Join Date: Feb 2005
Location: USA
Posts: 9
dartplayer1 is on a distinguished road

Thanks for all the help here is what I did to make it work.

%
N1 V1=0
N10(5/5/05)First line of the main program
N11 V1=V1+1

Main body of the program goes in here.

N401 IF [V1 LT 10] N10
N410 M2
%

Last edited by dartplayer1; 05-05-2005 at 02:03 PM.
Reply With Quote

  #7   Ban this user!
Old 05-05-2005, 02:50 PM
 
Join Date: Sep 2003
Location: United States
Posts: 64
brtlatjgt is on a distinguished road

You beat me to it but heres what we do

at end of program
V1=V1 +1
[IF V1 LT V2]N0100
V1=0

SET PARAMETER V1 TO 0
SET PARAMETER V2 TO 10


If you wanted to shift your z over
you would insert vzshz=vzshz-v3

then set parameter v3 to amount of shift
Reply With Quote

  #8   Ban this user!
Old 10-12-2005, 06:59 PM
 
Join Date: Mar 2005
Location: usa
Posts: 27
stude8 is on a distinguished road
Looping a OSP 3000

We have a number of Okumas with OSP 3000 controls and would like to bar feed them. I don't think the previous responses will work with the 3000. Could someone give me a hint how to do it?

Thanks,
Drake
Reply With Quote

  #9   Ban this user!
Old 11-20-2005, 05:03 PM
Jarwalcot's Avatar  
Join Date: Jun 2005
Location: USA
Age: 46
Posts: 184
Jarwalcot is on a distinguished road

Dart, at the rear of the machine in the control panel you should find a document called "Data Management Card"... Take a look at it and see if you have an Option called: "User Task II"... If this option is active create the following program:

Yourfilename.sdf (note that the created file is not a .min file)

spselect: "YourFileName.min,,,q10
end

And that's all it takes..

This is called a scheduled program and is called up just a little differently... In Auto Mode use your extend key F8 until you see the PSelect (I think F1 or F2) press the key and type * <write>... Your list of .SDF files will show just pick the file you want and follow the function key commands... It's been a few years since I've worked those keys so please refer to your Special Functions Manual to confirm key strokes...

FYI: That file can run more than program if you need it to, as in:

pselect: abc.min,,,Q10
pselect: def.min,,,Q10
End

I hope this helps... If you can't find the info in your manual's let me know and I'll get it for you.
__________________
JR Walcott
Georgia Machine Tool Resources, LLC
Reply With Quote

  #10   Ban this user!
Old 11-20-2005, 08:22 PM
 
Join Date: Mar 2005
Location: usa
Posts: 27
stude8 is on a distinguished road

JR....I imagine that your post refers to newer Okumas. We haven't been able to figure out how to loop the older controls so we've just created long programs as our memory allows. The job we're running now let's us run 8 parts before we run out of memory. If you know a better way I'd appreciate hearing how.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-21-2005, 05:42 AM
Jarwalcot's Avatar  
Join Date: Jun 2005
Location: USA
Age: 46
Posts: 184
Jarwalcot is on a distinguished road

stude8,

Have you tried to use your tape drive rather than your memory? Using both the tape drive and a simple hard wired counter connected to your feed hold or e-stop circuits you should be able to gain additional throughput. I'll do a little research tonight. If I come up with a better way, I'll let you know.

Do you know if you have CMOS or Bubble Memory on this machine?

JR
__________________
JR Walcott
Georgia Machine Tool Resources, LLC
Reply With Quote

  #12   Ban this user!
Old 11-21-2005, 10:07 AM
 
Join Date: Mar 2005
Location: usa
Posts: 27
stude8 is on a distinguished road

I'm not sure. Maybe someone else will know, but I think it's CMOS. We have exec tapes for all of them, but we've never had to reload them. A loop tape does make sense. When I get a free minute I can type up a dummy tape to try.
We just loaded the same job on a twin spindle Wasino with an OTT control. That was easy. P(# of parts) plus the program #. Thanks for your help.
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with thread 1/2-8 2star on okuma osp7000l lathe plast744 G-Code Programing 5 06-16-2006 08:23 AM
Prototrak lathe question micit0001 General CNC (Mill and Lathe) Control Software (NC) 3 03-02-2005 07:04 PM
HF lathe question rs1300 General Metal Working Machines 0 01-19-2004 11:22 AM
9x20 Lathe question ccm General Metal Working Machines 13 09-25-2003 05:52 PM
Lathe question CNCadmin Benchtop Machines 5 07-01-2003 12:20 PM




All times are GMT -5. The time now is 07:11 AM.





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