585,744 active members*
4,241 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Haas Machines > Haas Mills > Easy part counting using tool offset page.
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2012
    Posts
    0

    Easy part counting using tool offset page.

    If anyone wants an easy to use and accurate part counter, try this line of code right above your M30. We use it a lot.

    G10 L10 G91 P30 R6;

    Did not see this suggestion here anywhere so I decided to throw it out there. "P" is the desired tool offset line you want it to increment your count to and should be a unused tool number. "R" without a decimal point will increment this setting by that specific number ( in tenths) which would be the number of finished pieces produced.

    Do not use a decimal in case you need to edit it for some reason and don't want an alarm for the number being to big. In this example, there are 6 finished parts after each cycle.

    Use L11 if you prefer it in the "H value" wear column. This also works on Fanuc mills as well. It also works on Brother cnc tapping centers but why bother when those have 4 counters activated by the M211-M214 code or an easy to get to macro variable page where you can use the 500 = #500 + 6 type code.



    Hope some of ya can make use of this.

  2. #2
    Join Date
    Aug 2010
    Posts
    579
    For a lathe, you can use this version:

    G10 L10 P30 U.0001

    You can also use M97 calls to increase the real parts counter:
    First, make sure setting 118 (M99 bumps M30 counter) is ON. The next step is to add a sub-routine like this example:

    M97 L5 P1000 (Loop 5 times)
    G105 (Barfeed)
    M99 (Repeat program and get 6th part count)
    M30 (End Program)

    N1000 (Beginning of local sub-routine)
    M99 (Jump back to main program)
    Thanks,
    Ken Foulks

  3. #3
    Join Date
    Aug 2010
    Posts
    579
    If you have macros:

    Turn off setting 118 and put this before the M99.

    #3901= #3901+ 6
    Thanks,
    Ken Foulks

  4. #4
    Join Date
    Feb 2012
    Posts
    0
    Quote Originally Posted by KenFoulks View Post
    For a lathe, you can use this version:

    G10 L10 P30 U.0001

    You can also use M97 calls to increase the real parts counter:
    First, make sure setting 118 (M99 bumps M30 counter) is ON. The next step is to add a sub-routine like this example:

    M97 L5 P1000 (Loop 5 times)
    G105 (Barfeed)
    M99 (Repeat program and get 6th part count)
    M30 (End Program)

    N1000 (Beginning of local sub-routine)
    M99 (Jump back to main program)
    Thanks! I think I will try this on one at work, although I don't usually deal with the lathes. We have a temp running some that likes to stroll away from his machines a bit much. Time for an audit to see if the amount of parts he says he made is for real! These run more than 1 shift so any shortage would be kinda hard to track down. (Haha! Evil, I know)

  5. #5
    Join Date
    Aug 2010
    Posts
    579

    Haas Factory Support

    If you have macros, you can count parts depending on shift:

    IF [#3020 GT 8.0] GOTO200
    N100 G10 P30 (Shift 1 Part Count)
    GOTO300 (Skip 2nd parts count)
    N200 G10 P29 (Shift 2 Part Count)


    Here are most of the timer variables:

    VARIABLES USAGE
    #3001 Millisecond timer
    #3002 Hour timer
    #3003 Single block suppression
    #3004 Override control
    #3006 Programmable stop with message
    #3011 Year, month, day
    #3012 Hour, minute, second
    #3020 Power on timer (read only)
    #3021 Cycle start timer
    #3022 Feed timer
    #3023 Present cycle time
    #3024 Last cycle time
    #3025 Previous cycle time

    Quote Originally Posted by djc1965 View Post
    Thanks! I think I will try this on one at work, although I don't usually deal with the lathes. We have a temp running some that likes to stroll away from his machines a bit much. Time for an audit to see if the amount of parts he says he made is for real! These run more than 1 shift so any shortage would be kinda hard to track down. (Haha! Evil, I know)
    Thanks,
    Ken Foulks

  6. #6
    Join Date
    Feb 2012
    Posts
    0
    The lathes are not Haas, but rather Kia, so I guess I will try the

    G10 L10 P30 U.0001

    Another scenario for a Haas mill is this:

    G10 L10 G91 P30 R3:
    G10 L12 G91 P30 R3:
    M30:

    This comes in handy if you have a situation where say you pack 100 parts in a box and want to reset one of the counters every time you fill a box. In this scenario, the L12 will put the other counter in the Radius column. Once you hit .0102, you simply take .0100 off of the secondary counter after the box is full and place the 2 remaining into a new box and your secondary counter is already set at .0002. This way you always have the main counter and the secondary is easy help for proper packing counts of each box. Works great since you can still run the machine with the tool offset page displayed.

    L10 = Length column
    L11 = Length wear column
    L12 = Radius column
    L13 = Radius wear column

Similar Threads

  1. part setup Z &tool length offset
    By boilerx in forum HURCO
    Replies: 3
    Last Post: 06-27-2010, 08:59 PM
  2. Mitsubishi Meldas - Switching Tool Offset Page Type
    By avongil in forum Mazak, Mitsubishi, Mazatrol
    Replies: 2
    Last Post: 09-18-2008, 08:20 PM
  3. Display Absolute on tool offset page
    By billm in forum Fanuc
    Replies: 0
    Last Post: 02-14-2007, 09:12 PM
  4. NC reading tool length from offset page, not data page..?
    By RMagnusson in forum Mazak, Mitsubishi, Mazatrol
    Replies: 1
    Last Post: 03-21-2006, 11:07 PM
  5. 10T Parts Count counting tool changes?
    By RBrandes in forum Fanuc
    Replies: 0
    Last Post: 02-12-2006, 02:23 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
  •