![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Okuma Discuss Okuma machines here. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| 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- |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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- |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
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. |
| Sponsored Links |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| 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 |
|
#8
| |||
| |||
| 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 ;-( |
|
#9
| |||
| |||
| 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. |
|
#10
| |||
| |||
| pp-Tg you are right,must have drop off again, do that a lot now. ezdoesit |
| Sponsored Links |
|
#11
| |||
| |||
| mpdid fall off the world or did any thing work |
|
#12
| |||
| |||
| 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 |
![]() |
| 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 |
| 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 |