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! > MetalWorking Machines > Okuma


Okuma Discuss Okuma machines here.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-16-2009, 07:28 AM
 
Join Date: Jan 2009
Location: sweden
Posts: 8
vesene is on a distinguished road
Automatically restart of program OSP5020

Hello everybody!
Im new at the forum which I find very interesting. Im from Sweden and therefore maybe all is not grammatically correct, hope you can live whit that.

I have a question about my lathe, a LB15II. How can I make the program to restart after end of program? I have made a barpuller and I dont want to press the start button every time. Im sure there is a easy way but I have not found it altough I have read in the manuals . It would be great to set the partcounter and just collect the parts from the chipcontainer. Greateful for help! Thanks.
/ Samuel
Reply With Quote

  #2   Ban this user!
Old 08-16-2009, 07:53 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

Mills have 2 methods of continuous cycling
I am sure that lathes have the same functionality

Before the M2/M30 insert a "GOTO NSTART" and place a "NSTART" on the 1st line of code would make the program continuous, but a parts count method would need to be added before that GOTO code, say "VC1=VC1+1 ". Parts count is normally advanced when a M2/M30 is executed. The 1 can be replaced with any number like if parting off a number of washers. VC1 is a user variable, most Okumas have 1 to 128 available for program use
Code:
NSTART G0 G40 G80 G90
...
VC1=VC1+1
GOTO NSTART
M2 or M30
or use a schedule program .SSB
example .SSB program
Code:
( SCHEDULE PROGRAM )
N1 PSELECT <yourprogram1.min> Q99
N2 PSELECT <yourprogram2.min> Q15
N3 PSELECT <yourprogram3.min> Q25
N4 GOTO N1  ( this also makes the program continuous )
N5 END
-This would load the program and then cycle it 99 times
then load #2 program and run it 15 times and so on.

PS. Welcome to the forum

Last edited by Superman; 08-17-2009 at 08:33 PM.
Reply With Quote

  #3   Ban this user!
Old 08-17-2009, 11:40 AM
 
Join Date: Dec 2008
Location: Canada
Posts: 79
Goldorak is on a distinguished road

Superman is right

but on a lathe you only use V1 instead of VC1
Reply With Quote

  #4   Ban this user!
Old 08-17-2009, 01:11 PM
 
Join Date: Jul 2009
Location: usa
Posts: 6
ssmw is on a distinguished road

And if you want 250 pieces you could throw in a

"IF [V16 GT V17] GOTO N0002"

sorry this is a cut and paste from one of my programs...
use any 'V' number you want, and an 'NSTART' instead of an "N0002"
set your V'16' to what ever you want for number of parts and let it run!
( with a 12 foot autoload bar feed - 24 hrs a day!)
__________________
Running Okuma: Cadet Mate x2, MC4VAE, Crown-BB, MC40VA-HS
Reply With Quote

  #5   Ban this user!
Old 08-18-2009, 08:41 AM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 578
broby is on a distinguished road

don't forget that line numbers can only be FOUR (4) alphanumerics long after the "N"
So NSTART will NOT work as a valid line number.
I usually use NSTRT instead.

Isn't it nice to see how the Mills and the Lathe programming teams got together and standardized the coding between the controllers... yep... VC's on the Mills and V's on the Lathes... real consistent guys!
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-18-2009, 08:55 AM
 
Join Date: Jul 2009
Location: usa
Posts: 6
ssmw is on a distinguished road

Yah -
Maybe not real consistent... but they are still fairly amazing controls! I've written a lathe program that has very few hard coded X and Z values in it. Used for parting and chamfering steel tubing for sleeves.. Variables for length, OD, Wall thickness, and amount of chamfer. I needed 1000 of 1 length, and 1000 of another, I just changed a variable in the parameters, and never stopped running!
__________________
Running Okuma: Cadet Mate x2, MC4VAE, Crown-BB, MC40VA-HS
Reply With Quote

  #7   Ban this user!
Old 08-18-2009, 05:24 PM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 578
broby is on a distinguished road

Originally Posted by ssmw View Post
Yah -
Maybe not real consistent... but they are still fairly amazing controls! I've written a lathe program that has very few hard coded X and Z values in it. Used for parting and chamfering steel tubing for sleeves.. Variables for length, OD, Wall thickness, and amount of chamfer. I needed 1000 of 1 length, and 1000 of another, I just changed a variable in the parameters, and never stopped running!
I so totally agree!
I have written many programs for generic parts that just vary only in size, but have the same profile, on both Lathes and Mills.
The Okuma User Task2 is a very powerfull and relativley straight forward programming method, once you get the idea of how things are done
I must admit, I do love the Okuma controls (and their machines do not break down ery often either... not like our Mazaks... Damn Integrex 400 is out for the count for another 4-6weeks, again).

Cheers
Brian.
Reply With Quote

  #8   Ban this user!
Old 08-20-2009, 01:45 AM
 
Join Date: Jan 2007
Location: NZ
Posts: 21
niggle is on a distinguished road

How we do this on our lathes is to have a N1 at the start of the program and /GOTO N1 before the M2 at the end. And use the work counters to stop it when a counts up. Having a / infront of the GOTO puts it on block delete, so when the operator wants to stop the program to change a tip or whatever he just puts block delete on and it'll run thru to the M2 and stop.
Reply With Quote

  #9   Ban this user!
Old 08-20-2009, 04:54 PM
 
Join Date: Jan 2009
Location: sweden
Posts: 8
vesene is on a distinguished road

Thanks for the replies!
I have tried the ways you described but I dont get the program to repeat a certain number of times, it just keeps running. What can I have done wrong?
I didnt figure out how to write a schedule program. And another thing that complicates things is thats my control is in Swedish, not always very accurate translated. Will try more after the weekend, tomorrow we will tranform the workshop to a partyplace, not much beats a Swedish pig-party!
Reply With Quote

  #10   Ban this user!
Old 08-20-2009, 05:23 PM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 578
broby is on a distinguished road

at the start of the program is... (Ignore the comments if you like)

NSTRT G0 X800 Z800 (GO HOME)
N0100 G50 S2500 (MAX RPM FOR THIS JOB)
N0102 BLAH BLAH BLAH
.
.
.
YOUR PROGRAM HERE
.
.
.

(END OF PROGRAM CODE HERE)
NEND G0 X800 Z800
N0900 V10=V10+1 (INCREMENT BAR PART COUNTER BY 1)
N0902 V12=V12+1 (INCREMENT TOTAL PARTS MADE COUNTER BY 1)
/GOTO N0908 (TURN OFF BLOCK DELETE TO JUMP THE CONTINUOUS SEQUENCE IF YOU WANT, HAVING BLOCK DELETE ON WILL IGNORE THIS LINE)
N0904 IF [V10 LE V11] NSTRT (JUMP TO LINE STARTING WITH "NSTRT" IF YOU HAVE MADE LESS PARTS THAN ALLOWED FOR THE LENGTH OF THE BAR)
N0906 V10=0 (RESET COUNTER FOR NUMBER OF PARTS PER BAR LENGTH)
N0908 M9
N0910 M5
N0912 M2

Hope this helps
Brian.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-21-2009, 08:17 AM
 
Join Date: Apr 2009
Location: USA
Posts: 417
OkumaWiz is on a distinguished road
Buy me a Beer?

It is NOT a good idea to use a GOTO command to repeat the program. The Okuma keys off of the M02 for many many things. For example:

Alarm C will not ever stop the machine.
Load monitor tool wear can't stop the machine.
Cycle time can not be calculated correctly on graphics page.
MacMan can not count parts or calculate cycle times properly.
Parts counters will not count properly.
Barfeeder interface does not work right since it can't use cycle stop and
Cycle stop switch will be innefective.

I STRONGLY suggest using the Schedule Program. It's easier to write, has an automatic counter and fixes all of the above problems.

See Superman's example - it's as easy as 2 lines of code. Just use SP SELECT instead of PROGRAM SELECT when you call up the program to run and it will give you a list of SDF files to choose from instead of MIN files.

This is the way the machine was designed to be used and it works well and it's simple. Think of it as a master schedule program that is able to call main (MIN) programs.

Good luck.
Reply With Quote

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

Just goes to show... On the Okuma machines that there is many different ways of skinning the proverbial cat!
The use of a schedule program is certainly the BEST way of doing this process, for all the reasons stated by Okumawiz.
Thanks for pointing those out... has been quite some time since I actually ran a machine and had forgotten about those types of reasons.
Cheers
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
Program restart johnd Mach Mill 3 03-01-2009 08:32 PM
M2: program restart eia/iso apylus444 Mazak, Mitsubishi, Mazatrol 5 10-06-2008 07:07 PM
Need Help!- Program restart issues HTC400 M-Plus MJMark Mazak, Mitsubishi, Mazatrol 3 09-16-2008 10:36 AM
Mid program restart HuFlungDung Haas Mills 4 06-26-2007 04:32 PM
Restart of integrex eia program with dual turrets Bobc007 Mazak, Mitsubishi, Mazatrol 3 04-01-2007 07:43 PM




All times are GMT -5. The time now is 04:55 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