587,414 active members*
3,078 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > Okuma OSP500L program repeat?
Results 1 to 12 of 12
  1. #1
    Join Date
    May 2005
    Posts
    39

    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. #2
    Join Date
    Oct 2006
    Posts
    10

    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

    :withstupi

  3. #3
    Join Date
    May 2005
    Posts
    39
    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. #4
    Join Date
    Sep 2007
    Posts
    217
    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. #5
    Join Date
    Feb 2003
    Posts
    349
    Quote 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

  6. #6
    Join Date
    Oct 2006
    Posts
    10

    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. #7
    Join Date
    Oct 2006
    Posts
    10
    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. #8
    Join Date
    Feb 2003
    Posts
    349
    Quote 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 ;-(

  9. #9
    Join Date
    Sep 2006
    Posts
    179

    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. #10
    Join Date
    Oct 2006
    Posts
    10
    pp-Tg

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

    ezdoesit

  11. #11
    Join Date
    Oct 2006
    Posts
    10
    mpdid fall off the world or did any thing work

  12. #12
    Join Date
    Sep 2007
    Posts
    44
    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

Similar Threads

  1. program repeat
    By villiersterrace in forum G-Code Programing
    Replies: 6
    Last Post: 07-28-2010, 01:55 AM
  2. okuma osp500l-g with sub-spindle
    By pp-TG in forum Okuma
    Replies: 1
    Last Post: 08-30-2007, 02:54 PM
  3. okuma OSP500L-G Control with sub-spindle
    By pp-TG in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 06-18-2007, 11:20 PM
  4. program repeat
    By heartlnd in forum Haas Mills
    Replies: 3
    Last Post: 08-19-2006, 08:13 AM
  5. How to repeat a EZ-Trac Program
    By Stoney372 in forum Bridgeport / Hardinge Mills
    Replies: 4
    Last Post: 02-16-2006, 08:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •