PDA

View Full Version : Okuma OSP500L program repeat?



mp-
09-11-2007, 03:42 PM
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-

ezdoesit
09-11-2007, 06:17 PM
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

:withstupi

mp-
09-11-2007, 08:09 PM
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-

crazythunder
09-12-2007, 12:43 PM
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

phx
09-12-2007, 02:14 PM
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

ezdoesit
09-12-2007, 07:41 PM
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

ezdoesit
09-13-2007, 05:11 PM
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

phx
09-14-2007, 01:24 PM
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 ;-(

pp-TG
09-15-2007, 08:47 PM
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.

ezdoesit
09-19-2007, 05:41 PM
pp-Tg

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

ezdoesit

ezdoesit
10-18-2007, 09:22 PM
mpdid fall off the world or did any thing work

beartrax
11-13-2007, 08:17 AM
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