587,362 active members*
3,675 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > Very simple tool life counter
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2008
    Posts
    113

    Very simple tool life counter

    I have been unable to find any examples on this matter. As always, it is frustratingly hard to find any examples for the more "advanced" stuff of the Okuma machines!

    So, I essentially need something like this: whenever a tool change is called, a tool counter is increased by one. I would like to do this without having to use additional code or generic user variables, if possible. There is some kind of table in the tools view where I can enter stuff such as tool group, type, counter, "org" etc. for each tool but I have no idea how this works and whatever I put in the fields, nothing happens.

    So, is it possible to make the tool counter increase by one on every tool change, what code is needed and what should be manually put into the tool table?

    The control is OSP-P200M.

    Thank you

  2. #2
    Join Date
    Jun 2015
    Posts
    4156

    Re: Very simple tool life counter

    hy myhaje

    is it possible to make the tool counter increase by one on every tool change ...
    you should use a tool change macro with a counter inside

    for a counter on each tool, you should consider blocked a number of common variables equal with ATC capacity

    you wish to count tool changes for each tool, or you wish to count changes in general ? please explain a bit more

    I would like to do this without having to use additional code ...
    please, allow me to joke : do you wish for a drone to fly arround the cnc and make a shopping list ? kindly !
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  3. #3
    Join Date
    Jun 2008
    Posts
    113

    Re: Very simple tool life counter

    Thanks for the instant response.

    Quote Originally Posted by deadlykitten View Post
    please, allow me to joke : do you wish for a drone to fly arround the cnc and make a shopping list ? kindly !
    No, but I was thinking if the control was inherently able to do this. Not being an Okuma guru (more of a Fanuc guy) I kind of hoped it was possible... anyways, not a big deal to add a few lines of code. Now only to find the codes

  4. #4
    Join Date
    Jun 2015
    Posts
    4156

    Re: Very simple tool life counter

    you wish to count tool changes for each tool, or you wish to count changes in general ? please explain a bit more
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  5. #5
    Join Date
    Apr 2009
    Posts
    1262

    Re: Very simple tool life counter

    Your control will count and change tools when the TLID command is used, however you must change your program to use tool life command in order for it to work this way. TG=1 OG=1 for example on the lathe.

    If you do not want to do this, then you would need to manually increase the count using system variables for tool life. You can the use an if statement to trigger the alarm when the count is reached.
    Here is an example of doing this from a lathe program I wrote:

    ~CUTTING PROGRAM~
    CALL OTOOL
    M02

    OTOOL (TOOL LIFE SUB PROGRAM)
    IF[VORD[0016]EQ 1]NPASS (IF MACHINE LOCK ON THEN SKIP TO NPASS)
    VTLCN[1]=VTLCN[1]+1 (TOOL LIFE COUNTER 1 COUNT UP)
    VTLCN[2]=VTLCN[2]+1(TOOL LIFE COUNTER 2 COUNT UP)
    VTLCN[3]=VTLCN[3]+1
    VTLCN[4]=VTLCN[4]+1
    (VTLCN[5]=VTLCN[5]+1
    VTLCN[6]=VTLCN[6]+1)
    VTLCN[7]=VTLCN[7]+1
    VTLCN[8]=VTLCN[8]+1
    VTLCN[9]=VTLCN[9]+1
    VTLCN[10]=VTLCN[10]+1
    VTLCN[11]=VTLCN[11]+1
    VTLCN[12]=VTLCN[12]+1
    ATLF=1
    NINC IF[[VTLCN[ATLF]]LT[VTLSN[ATLF]]]NTLC (CHECK OF TOOL LIFE)
    VUACM[1]='A TOOL LIFE EXP' (ALARM MESSAGE)
    VDOUT[991]=ATLF (TOOL LIFE ALARM C WITH CODE EQUAL TO EXPIRED TOOL)
    NTLC ATLF=ATLF+1
    IF[ATLF LE 12]NINC (REPEAT UNTIL ALL 12 ARE CHECKED)
    NPASS
    RTS

    System variable VTLCN = tool life count number
    System variable VTLSN = tool life set number
    In this program tools 5 and 6 were not used. The rest are counted up each cycle.

    You can use the count table for tool life using this method without having to change the program tool callouts.

    Best regards,
    Experience is what you get just after you needed it.

  6. #6
    Join Date
    Jun 2015
    Posts
    4156

    Re: Very simple tool life counter

    thank you 4 sharing this i still need to read tfm

    i would have done this individual counter inside each operation, near end :

    Code:
        VC [ VTLCN ] = VC [ VTLCN ] + 1
        IF [ VC [ VTLCN ] LT ... ] NJUMP
            M0 ( check tool )
        NJUMP
    VUACM[1]='A TOOL LIFE EXP' (ALARM MESSAGE)
    VDOUT[991]=ATLF (TOOL LIFE ALARM C WITH CODE EQUAL TO EXPIRED TOOL)
    nice output also this should work :

    Code:
        VUACM [   1 ] = 'A TOOL LIFE EXP'
        VUACM [  15 ] = '= ATLF'
        VDOUT [ 991 ] = 999
    i preffer M0 instead, because VUACM :
    ... displays text as an error
    ... it won't go off from the screen untill control is reseted, and if meanwhile another error ocures, it won't be displayed kindly !
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

Similar Threads

  1. Replies: 3
    Last Post: 03-14-2024, 03:56 PM
  2. Replies: 1
    Last Post: 06-11-2014, 02:53 AM
  3. individual tool number counter
    By bigbobr in forum Haas Mills
    Replies: 1
    Last Post: 02-21-2013, 04:34 PM
  4. Renishaw tool offset / break probe and tool life management
    By mcash3000 in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 02-21-2010, 04:14 AM
  5. Tool Counter
    By Qbubba in forum Fanuc
    Replies: 0
    Last Post: 02-16-2009, 09:23 PM

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
  •