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 09-11-2007, 03:42 PM
mp- mp- is offline
 
Join Date: May 2005
Location: US
Posts: 36
mp- is on a distinguished road
Okuma OSP500L program repeat?

How do I get the program to repeat a certain number of times?

I've got the part running fine, and I'd like to utilize the bar puller to repeat until the 3' bar is used up?

Do I need to use the 'schedule' program function?

Thanks,

mp-
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 09-11-2007, 06:17 PM
 
Join Date: Oct 2006
Location: usa
Posts: 10
ezdoesit is on a distinguished road
Okuma OSP500L program repeat?

you can put a line at the begain with n the frist letter (nstart) then next to the last line put \ goto nstart with the block delete so it will read the line it will run part after part. i ran these thing for 14 year able 9 year age it will take some ?? i can ask the people i work with to get you some of what i can
ezdoesit

Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 09-11-2007, 08:09 PM
mp- mp- is offline
 
Join Date: May 2005
Location: US
Posts: 36
mp- is on a distinguished road
ezdoesit,

Thanks for that. My machine manual does not reference the nstart command.

My "Schedule" program will run continuously if programmed like this:

N001 PSELECT CAP.MIN Q10
GOTO N001
N002 END

The problem with this is that I need the program to repeat only about 30 times until the bar is finished. Apparently I'm not getting the Q word programmed correctly.

mp-
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 09-12-2007, 12:43 PM
 
Join Date: Sep 2007
Location: USA
Posts: 217
crazythunder is on a distinguished road
You can do it with .ssb files as a sub program you will then want to use the CALL XXXXX QXX format and you can then call the program how many time you want with the Q. I like the methos better than the schedule method. I also name ny .ssb files with a O and 4 digit number like on a Fanuc like so. O3456 then make sure you have that also in the .ssb program at the top and everything should work fine.

Here is a sample .ssb program and main program calling it.

(TOOL - 5A OFFSET - 5A)
(OD SPLINE TOOL)
N100 G13
N102 T0505
N104 G0G18G90G94
N106 M110
N108 M146
N110 G0Z.1P10
N112 G0X.167C0.0P20M8
N114 CALL O4501 Q12
N116 G0Z.25
N118 X0.0C0.0
N120 Z.100
N122 CALL O4502 Q12
N124 G0Z1.0P100
N126 X20.M9
N128 Z20.
N130 M01

O4501
N1000 CALL O4511 Q33
N1100 G90X.167Z.1
N1200 G91C32.
N1300 RTS

O4511
N2100 G90G1Z-1.0F200.
N2110 G91G0X.015
N2120 G90Z.1
N2130 G91X-.02
N2500 RTS

Good luck
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 09-12-2007, 02:14 PM
phx phx is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 76
phx is on a distinguished road
Originally Posted by mp- View Post
ezdoesit,

Thanks for that. My machine manual does not reference the nstart command.

My "Schedule" program will run continuously if programmed like this:

N001 PSELECT CAP.MIN Q10
GOTO N001
N002 END

The problem with this is that I need the program to repeat only about 30 times until the bar is finished. Apparently I'm not getting the Q word programmed correctly.

mp-
hi
IIRC was that Q,,,10
but why Goto N001?

i am missing that control;-)
i am now fanucfighter ;-(

i was doing a fault

PSELECT CAP.MIN,,, Q30
END

Last edited by phx; 09-13-2007 at 04:35 AM.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-12-2007, 07:41 PM
 
Join Date: Oct 2006
Location: usa
Posts: 10
ezdoesit is on a distinguished road
osp 500l

V31=1 V32=the No Of Parts You Need
N001


Juist Befor Goto Line
V31+1=v31
If[v31 Gt V32] Nend
Goto N001
N002 Nend


Do You Have A Block Delete Botton On Your Contor? If You Do Turn It On To See If It Will Runmore Than One Part, If Not Turn It Off.
Ed
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 09-13-2007, 05:11 PM
 
Join Date: Oct 2006
Location: usa
Posts: 10
ezdoesit is on a distinguished road
hi
IIRC was that Q,,,10 (the number of parts to run)
but why Goto N001? (this way it will loop back to to n001)
(and run the next part)

i am missing that contro ( l;-) what do you mean with his)
i am now fanucfighter ;-(

i was doing a fault

PSELECT CAP.MIN,,, Q30
END

ezdoesit
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 09-14-2007, 01:24 PM
phx phx is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 76
phx is on a distinguished road
Originally Posted by ezdoesit View Post
hi
IIRC was that Q,,,10 (the number of parts to run)
but why Goto N001? (this way it will loop back to to n001)
(and run the next part)




ezdoesit
and how can it stop after then 10 Parts?
Line N001 makes 10 Parts,
in next line it goes back to N001 and make the next "10" run without a wait
an will never end, since there is an error. (out of Material, chuck not clump)

i am missing that contro ( l;-) what do you mean with his)
i am now fanucfighter ;-(

i was working with Okuma controls since 1985,
now i has to fight with F.....
not real fun.

after 20 years i had to learn what a reference point is ;-(
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 09-15-2007, 08:47 PM
 
Join Date: Sep 2006
Location: us
Posts: 117
pp-TG is on a distinguished road
OSP500l

I do it similar to ezdoesit in post #6.

EXAMPLE

$YB1212.min% (program name)
G50S4500
NRUN1 (beginning of program)
G0T0101
;
;
;
;
;
;
;
G0 X20.Z20.
V2=V2+1
IF [V2 EQ 30] GOTO N829
/GOTO NRUN1
N829
M02

in the [v2 eq 30] the 30 is the number of parts you need to run.
you also need to make sure that parameter 2 is clear in the common variable. or whichever variable you use.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 09-19-2007, 05:41 PM
 
Join Date: Oct 2006
Location: usa
Posts: 10
ezdoesit is on a distinguished road
pp-Tg

you are right,must have drop off again, do that a lot now.

ezdoesit
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-18-2007, 09:22 PM
 
Join Date: Oct 2006
Location: usa
Posts: 10
ezdoesit is on a distinguished road
mpdid fall off the world or did any thing work
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 11-13-2007, 08:17 AM
 
Join Date: Sep 2007
Location: USA
Age: 54
Posts: 42
beartrax is on a distinguished road
This is the way we do it.

PLACE "V20=0" (WITHOUT QUOTATION MARKS)BEFORE N0001, OR THE STEP YOU WANT TO HAVE BARPULL RUN.
EXAMPLE:
END
DRAW
V20=0
N0001 M25 M21
N0002 G00 X20 Z20
N0003 G50 S2500
NAT03

PLACE:
V20=V20+1
IF[V20 GE 16] GOTO N1002 (NUMBER SHOULD BE THE ONE IMMEADIATLY FOLLOWING)
GOTO N0001
AFTER BARPULL M01, OR LAST M01 IN THE PROGRAM.
EXAMPLE:
N1000 CALL OPULL
N1001 M01
V20=V20+1
IF[V20 GE 16] GOTO N1002 (16 being the # of parts)
GOTO N0001
N1002 M24 M20
N1003 M02
Tweet this Post!Share on Facebook
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 repeat villiersterrace G-Code Programing 6 07-27-2010 08:55 PM
okuma osp500l-g with sub-spindle pp-TG Okuma 1 08-30-2007 09:54 AM
okuma OSP500L-G Control with sub-spindle pp-TG General CNC (Mill and Lathe) Control Software (NC) 0 06-18-2007 06:20 PM
program repeat heartlnd Haas Mills 3 08-19-2006 03:13 AM
How to repeat a EZ-Trac Program Stoney372 Bridgeport and Hardinge Mills 4 02-16-2006 02:24 PM




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