587,040 active members*
2,740 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2015
    Posts
    2

    okuma part counter

    Hi all,
    I am needing help programing okuma lathe with osp p200 control

    I want to machine 5 pieces out of bar stock, looping back to the start, run 5 pieces ,then stop so I can reload it. I use a puller, I have used the goto to loop back to the start. Just need to count parts.

    thanks, paul

  2. #2
    Join Date
    Nov 2005
    Posts
    196

    Re: okuma part counter

    I've used a 5020 control but never a p200, so this might not work.

    On the 5020 you can use variables & conditional branching.
    IIRC this is how you would assign a value to variable 1:
    [V1] = 1

    Adding to variable 1:
    [V1] = [V1] +1

    So you need to add [V1] = 1 above the line you're looping back to.
    Add [V1] = [V1] +1 above the line that loops back.
    Then edit the loop back line to a conditional branch that will only loop back when [V1] is less than 6.

  3. #3
    Join Date
    Dec 2008
    Posts
    3122

    Re: okuma part counter

    Just to expand on Ted's suggestion for a generic program
    Code:
    HEADER, COMMENTS etc.
    V1=0...set count to zero at start of run
    N1... safety code line G0 G40 etc
    ...
    your PROGRAM
    ....
    V1 = V1+1....advance count for completed part
    IF V1=5 NEND.....if count hits this number, jump to line NEND
    GOTO N1.....jump to N1 line
    NEND M30
    %

  4. #4
    Join Date
    Jan 2015
    Posts
    2

    Re: okuma part counter

    I had to replace (=) with (EQ) in the (IF) line with brackets
    then it worked great. thanks for the help!


    Quote Originally Posted by Superman View Post
    Just to expand on Ted's suggestion for a generic program
    Code:
    HEADER, COMMENTS etc.
    V1=0...set count to zero at start of run
    N1... safety code line G0 G40 etc
    ...
    your PROGRAM
    ....
    V1 = V1+1....advance count for completed part
    IF V1=5 NEND.....if count hits this number, jump to line NEND
    GOTO N1.....jump to N1 line
    NEND M30
    %

Similar Threads

  1. Replies: 1
    Last Post: 06-11-2014, 02:53 AM
  2. Help with my 'part counter' please
    By buffaloguy in forum MetalWork Discussion
    Replies: 6
    Last Post: 05-14-2011, 12:23 AM
  3. Need help on Part Counter
    By fahed in forum Uncategorised MetalWorking Machines
    Replies: 17
    Last Post: 03-27-2010, 08:57 PM
  4. Part Counter
    By ParadiseIsle in forum FlashCut CNC
    Replies: 1
    Last Post: 06-14-2007, 02:04 AM
  5. Okuma parts counter
    By Musclebound in forum Okuma
    Replies: 3
    Last Post: 02-27-2007, 03:53 AM

Tags for this Thread

Posting Permissions

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