Very simple tool life counter


Results 1 to 3 of 3

Thread: Very simple tool life counter

  1. #1
    Member
    Join Date
    Jun 2008
    Location
    finland
    Posts
    113
    Downloads
    0
    Uploads
    0

    Default 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

    Similar Threads:


  2. #2
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default 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 !

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  3. #3
    Member
    Join Date
    Jun 2008
    Location
    finland
    Posts
    113
    Downloads
    0
    Uploads
    0

    Default 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
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default 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

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  5. #5
    Member OkumaWiz's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    1262
    Downloads
    0
    Uploads
    0

    Default 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
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default 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 !

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Very simple tool life counter

Very simple tool life counter