Run 30 parts then stop?
Close
Login to Your Account
Page 1 of 2 12 LastLast
Results 1 to 20 of 30
  1. #1
    Join Date
    Jan 2009
    Location
    south jersey
    Posts
    130
    Post Thanks / Like
    Likes (Given)
    69
    Likes (Received)
    27

    Default Run 30 parts then stop?

    I have a Hardinge Talent with a Fanuc Oi-TB control. On the setting page their is a parts count , and a parts required page. But it only counts the part if their is an M30. When I'm doing bar work with a M99 it does not register the part. Their is no auto restart switch , so this is how I get it to run a bar (M99). How can I run a specified amount then quit?
    Thanks in advance.

  2. #2
    Join Date
    Nov 2013
    Country
    UNITED STATES
    State/Province
    Minnesota
    Posts
    471
    Post Thanks / Like
    Likes (Given)
    168
    Likes (Received)
    312

    Default

    Try M54 just before the M99.

  3. #3
    Join Date
    Nov 2001
    Location
    WAPELLO, IA USA
    Posts
    6,407
    Post Thanks / Like
    Likes (Given)
    29
    Likes (Received)
    1840

    Default

    either that or a macro counter of your own.

  4. #4
    Join Date
    Jan 2009
    Location
    south jersey
    Posts
    130
    Post Thanks / Like
    Likes (Given)
    69
    Likes (Received)
    27

    Default

    Quote Originally Posted by bukwerm View Post
    Try M54 just before the M99.
    Just sat there at M54
    and didn't do anything.

  5. #5
    Join Date
    Jan 2009
    Location
    south jersey
    Posts
    130
    Post Thanks / Like
    Likes (Given)
    69
    Likes (Received)
    27

    Default

    Quote Originally Posted by WILLEO6709 View Post
    either that or a macro counter of your own.
    I guess once I learn to write a macro, their will be no stopping me.

  6. #6
    Join Date
    Feb 2012
    Location
    California
    Posts
    1,380
    Post Thanks / Like
    Likes (Given)
    884
    Likes (Received)
    1482

    Default

    Parts counting is different from control to control. I just use macros.

    #500 = #500 + 1
    IF[#500 GE 30] GOTO100
    M99
    N100 M30

  7. Likes mhajicek, TeachMePlease, JMC liked this post
  8. #7
    Join Date
    Jul 2012
    Country
    UNITED STATES
    State/Province
    North Carolina
    Posts
    292
    Post Thanks / Like
    Likes (Given)
    275
    Likes (Received)
    114

    Default

    Loop it 30 times?

  9. Likes Greg White, DavidScott liked this post
  10. #8
    Join Date
    Jan 2006
    Country
    UNITED STATES
    State/Province
    New York
    Posts
    1,608
    Post Thanks / Like
    Likes (Given)
    693
    Likes (Received)
    785

    Default

    O1000
    M98 P301111 (P1111 is your prog with the M99 in it. The 30 after the P is the number of loops)
    M30

    or another way

    O1000
    M98 P1111L30 (1111 is your prog with the M99 in it L30 is loop 30 times )
    M30

    If 1 format doesn't work, the other generally will.

  11. Likes ranchak liked this post
  12. #9
    Join Date
    Nov 2013
    Country
    UNITED STATES
    State/Province
    Minnesota
    Posts
    471
    Post Thanks / Like
    Likes (Given)
    168
    Likes (Received)
    312

    Default

    Either a macro or subprogram loop will do the trick. The advantage to those methods is that they can be applied to other problems as well.

    If you want to just use an M code try checking parameter #6710. On the 0i-tc that's were the part count M code is specified.

  13. Likes bartthefarmer liked this post
  14. #10
    Join Date
    Nov 2013
    Country
    UNITED STATES
    State/Province
    Minnesota
    Posts
    471
    Post Thanks / Like
    Likes (Given)
    168
    Likes (Received)
    312

    Default

    Here's what I mean.
    uploadfromtaptalk1408577876813.jpg

  15. #11
    Join Date
    Mar 2007
    Location
    warren, mi
    Posts
    1,185
    Post Thanks / Like
    Likes (Given)
    126
    Likes (Received)
    306

    Default

    my hardinge cobra has a parameter that you can set for auto repeat with a barfeeder. you still end the program with M30 and then the parts counter works. look for the auto repeat.

  16. #12
    Join Date
    Jan 2009
    Location
    south jersey
    Posts
    130
    Post Thanks / Like
    Likes (Given)
    69
    Likes (Received)
    27

    Default

    Quote Originally Posted by chip_maker View Post
    O1000
    M98 P1111L30 (1111 is your prog with the M99 in it L30 is loop 30 times )
    M30
    Took yesterday off and went fishing
    This is what I went with this morning and works great. Thanks
    Thanks for all the replys ,I will play around with these when a get some more time.
    This place is the best when you are a one man band and need a little help.

  17. Likes chip_maker liked this post
  18. #13
    Join Date
    Sep 2013
    Country
    UNITED STATES
    State/Province
    Ohio
    Posts
    346
    Post Thanks / Like
    Likes (Given)
    196
    Likes (Received)
    176

    Default

    You can also do redundant tooling with auto tool change macro. PM me and I will send you an example.

  19. #14
    Join Date
    Jun 2012
    Location
    Michigan
    Posts
    4,730
    Post Thanks / Like
    Likes (Given)
    4336
    Likes (Received)
    2876

    Default

    Quote Originally Posted by bukwerm View Post
    Here's what I mean.
    uploadfromtaptalk1408577876813.jpg
    This counter only counts the M30.
    Our machine uses M12 for the counter... Hyundai-Kia... it has an external counter on the front of the control and every time it sees an M12, it adds +1.

  20. #15
    Join Date
    Nov 2013
    Country
    UNITED STATES
    State/Province
    Minnesota
    Posts
    471
    Post Thanks / Like
    Likes (Given)
    168
    Likes (Received)
    312

    Default

    Quote Originally Posted by Mtndew View Post
    This counter only counts the M30.
    Our machine uses M12 for the counter... Hyundai-Kia... it has an external counter on the front of the control and every time it sees an M12, it adds +1.
    Not sure I'm understanding you... My machine most definitely adds to the parts counter every time M54 is read. If I wanted to use M12 as my count code I'd replace the 54 in my pic with 12. M12 might be specified as some other function in my control though, hence someone else's comment about specific part count code varying.

    With no idea of the op's experience I suppose I really should have said to use caution when trying the M54. No idea what his machine builders have specified for that code.

    Once the parts count equals the parts required then the machine alarms out and stops. The nice thing about using the macro and/or subcall methods with counting is they don't throw an alarm. (unless programmed to) A program can be written so the machine stops at a set number of parts and then continue on when cycle start is hit. No worries that way about an operator having to reset or change anything in order to keep running.

  21. #16
    Join Date
    Dec 2002
    Location
    Granville,NY,USA
    Posts
    3,934
    Post Thanks / Like
    Likes (Given)
    333
    Likes (Received)
    427

    Default

    Quote Originally Posted by Orange Vise View Post
    Parts counting is different from control to control. I just use macros.

    #500 = #500 + 1
    IF[#500 GE 30] GOTO100
    M99
    N100 M30
    This is how I do it. Except I assign another variable to be my part qty like #501. Then on my variable page set 501 to what ever I want for a count

    If you are going to run the program over and over make sure you put a #500=0 before your M30 so that it is reset for next time.

  22. #17
    Join Date
    Jan 2009
    Location
    south jersey
    Posts
    130
    Post Thanks / Like
    Likes (Given)
    69
    Likes (Received)
    27

    Default

    Quote Originally Posted by bukwerm View Post
    Either a macro or subprogram loop will do the trick. The advantage to those methods is that they can be applied to other problems as well.

    If you want to just use an M code try checking parameter #6710. On the 0i-tc that's were the part count M code is specified.
    Just had a few minutes to check this out. M97 is what is specified there.
    Sub program loop is working great but nice to know other options, if I have to interrupt the loop this might be a better way to go.. No operators to worry about, except me.

  23. #18
    Join Date
    Aug 2002
    Location
    West Unity, Ohio
    Posts
    25,413
    Post Thanks / Like
    Likes (Given)
    5670
    Likes (Received)
    8090

    Default

    The loop counter on the sub call is a slight help, but once you stop it in the middle of the bar - You are SOL.

    I think that you can add other M calls to the counter library.
    I don't know the param number off the top of my head.
    Glance through the params and you may find it.


    ----------------

    Think Snow Eh!
    Ox

  24. #19
    Join Date
    Nov 2013
    Country
    UNITED STATES
    State/Province
    Minnesota
    Posts
    471
    Post Thanks / Like
    Likes (Given)
    168
    Likes (Received)
    312

    Default

    Quote Originally Posted by FOXFIRE View Post
    No operators to worry about, except me.
    In my case that's the operator that usually gives me the most problems.

  25. Likes Mtndew, toolsteel, swatkins, aj liked this post
  26. #20
    Join Date
    May 2008
    Country
    SOUTH AFRICA
    Posts
    1,627
    Post Thanks / Like
    Likes (Given)
    1191
    Likes (Received)
    667

    Default

    Quote Originally Posted by Mtndew View Post
    This counter only counts the M30.
    Our machine uses M12 for the counter... Hyundai-Kia... it has an external counter on the front of the control and every time it sees an M12, it adds +1.
    M12 must be a Kia thing. Mine, SKT21, uses M12 as the counter and no other M code even M30.


Bookmarks

Posting Permissions

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