Need Automatic Wear Offset


Page 1 of 2 12 LastLast
Results 1 to 20 of 25

Thread: Need Automatic Wear Offset

  1. #1
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0

    Question Need Automatic Wear Offset

    I am running a Wasino G6 w/ Fanuc 21i controls. I'm looking for a G or M code or macro to automatically increment the wear offset register. One of our tools seems to have a predictable wear amount and should be incremented by that certain amount every cycle. Is there such a thing where it can be programmed? Would this be a G10?

    I know it could probably be set as a variable and added to the wear offset, but I need it to actually change the number in the wear offset page. I don't want to rely on the operator to reset the variable after a tool change.

    Thanks,
    Mark

    Similar Threads:


  2. #2
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1511
    Downloads
    0
    Uploads
    0

    Default

    I am unsure of the tool variables for the 21i control. However I have the same for the 15 and 18 series control so they might be the same. If you want to set it up with G or M code instead of programming it you have to use the custom macro parameters to set a G or M code to call a macro program. Then you can write the macro program to adjust the tool wear. At that point all you have to do is program the G or M code in your main program when you want to adjust the wear.

    #2000= Tool length geometry
    #2200=Tool length wear
    #2400= Tool radius geometry
    #2600= Tool radius wear
    These numbers have to have the tool number in them. For example tool length geometry for tool 5 is #2005. Tool radius geometry for tool 5 is #2405.

    Now if it always the same tool then you could set up your macro something like this. If it is always tool 5. You have to set up in the parameters a G code to call program 9001 like G500 or something. I don’t have the 21i manual in front of me but I can look them up tomorrow.


    G500
    O9001(wear program)
    #100=.0025(predictable wear)
    #2205=#2205-#100(use the variables #2000,#2200,#2400,#2600 whatever one you’re trying to set)
    M99
    You can also just change the line to #2205=#2205-.0025 if the amount is always the same.

    The other way you can do it if you want to for different tools get a variable that is used to track the tool that is in the spindle. If you don’t have a macro variable that tracks that you can find a system variable that does. Let s say macro variable #500 tracks the current tool in the spindle

    G500
    O9001(wear program)
    #100=.0025
    #[2200+#500]=#[2200+#500]-#100
    M99
    This way you’re not stuck to one tool. Whenever you want to adjust the wear .0025 just program a G500 in your main program.

    If you do it G10 way you would always have to know were your wear number is at and what the number is going to be from there and program it in the G10 line.

    Stevo



  3. #3
    Member
    Join Date
    Jan 2005
    Location
    USA
    Posts
    304
    Downloads
    0
    Uploads
    0

    Default

    I will use offset # 3 "X" axis for my sample. I will use 10 for the "trigger" to make adjustment.
    You will need macro "B" for this to work.

    (First you need to have a counter to keep track of how many parts are run.)
    #149=[#149+1]
    (Then check for the number you KNOW is the trigger to make an adjustment.)
    IF[#149LE10]GOTO123 (skip over adjustment IF counter trigger NOT reached)
    #2003=[#2003+.0005] (Adjust "X" offset #3 by +.0005)
    #149=0(Reset counter AFTER adjustment is made)

    N123(Address to jump to when NOT doing adjustment)


    Here it is without comments. Add these lines to your program.

    #149=[#149+1]
    IF[#149LE10]GOTO123
    #2003=[#2003+.0005]
    #149=0
    N123



  4. #4
    Member chucker's Avatar
    Join Date
    Nov 2007
    Location
    USA
    Posts
    188
    Downloads
    0
    Uploads
    0

    Default offsets

    You may want to use an number of #500 or above because I think on the fanuc control that Below #500 you will loose the vaule you have in your register if you reset the control or turn off your machine with any vairble below #500



  5. #5
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0

    Default

    So... If I can take an educated guess that the ID cutter (Tool #2) wears .00005 EVERY part (wear in X), then I don't have to do the counter and IF statement, correct?

    All I would need is #2002=[#2002+.00005] at the end of the program.

    Is this all I need?

    Thanks again,
    Mark



  6. #6
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1511
    Downloads
    0
    Uploads
    0

    Default

    Chucker you are correct. The local variables #1-#33 are set to clear at program end, reset button, or power down of machine. #100-#199 common variables will rest at power down. #500-#999 permanent common variables will stay until changed.

    P8md you are correct. If it is always the same tool and the same wear amount in the same program then that will work. Cogsman1 was refering to if there was a loop in the program that ran a set number of parts and the wear was consistant and did not need adjustments until after the 10pc then the auto adjusments would be made after 10pcs.

    #2002 is your geometry for tool 2 in the X. I would leave that alone if the wear that you are seeing is insert wear. I would use the #2202 X wear. The tool geometry is not what is changing it is the insert. So when the insert needs to be changed you can clear the wear offset to 0 and you are back were you started. You will also have to figure out the proper + or - to adjust. If I assume that you have your offsets to gauge line then your ID tool offset geometry should read a - number. There for your line of code is correct. Adding a + number to the - offset creates a small - telling the tool to move closer to the part and remove more material.

    Stevo



  7. #7
    Member
    Join Date
    Jan 2005
    Location
    USA
    Posts
    304
    Downloads
    0
    Uploads
    0

    Default

    Stevo, your are correct. Good catch!
    On the Fanuc the #100 variables DO reset at power off. I run Fanuc and Mitsubishi controls. The Mitsubishi does NOT reset automatically.



  8. #8
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0

    Default

    OK... I'm missing something. I put #2202=[#2202+.0001] in the end of the program before it looped back around and it didn't do anything. No errors, no changing offsets, nothing. We wrote down all the offsets just to make sure nothing unexpected changed.

    Is the syntax correct? Where do the brackets go? Do I even need the brackets?

    Also, stevo says that the #2200's are Tool Length Wear. Wouldn't that be the Z direction? I'm wanting to offset in the X direction because we keep loosing our ID size. Would that be the #2600's?

    Thanks,
    Mark



  9. #9
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0

    Default

    BTW, we do have macro B.



  10. #10
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1511
    Downloads
    0
    Uploads
    0

    Default

    Hmmmm that is weird. You have the correct format. Do you have tool offset memory C? The easiest way to figure out what system variables are for which offset area program it whole. Use a offse number that you don't use or write on down. Say its offset 25. Program #2025=12.3456 and look at offset 25 acroos the board and see were 12.3456 was input. Do the same for #2225, #2425,#2625. One at a time to see what gets changed.

    I have the same format a system variables across the board on all my controls. However I have never used a 21i control. I think the only thing that can change or dictate it is which offset memory you have. If you can see the 4 colums for offset memory then there are system variables to set these so doing what I stated above should find what you need.

    Stevo

    One other thing I just remembered. If you have a radius tool tip line in your offset page that could be using the #2200 parameters and if it does not have enough decimals .0000 then it might not show up.

    Stevo



  11. #11
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0

    Default

    Thanks SteveO. I haven't tried this yet, but should I be able to do this in MDI also? I tried in MDI and in the program the 1st try and neither worked.



  12. #12
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1511
    Downloads
    0
    Uploads
    0

    Default

    Yes you can do this in MDI. I should apologize. I should have had you set common variables equal to the system variables. It is not a good idea to start changing system variables if you don’t know what they are. If the machine took the .0001 change you made and you can’t see it. It is set somewhere.

    The best way is to set and find offsets (example offset 25) set to different numbers across the geometry, radius and wears to like 1, 2, 3, 4 Then MDI #100=#2025, #101=#2225, #102=#2425, #103=#2625. Then look at variable 100-103 and see if they equal any of the 1,2,3,4.

    I also found some system variables for a 21i-TB/210i-TB (pdf attached). According to this #2000 are your X axis wear column. And as I see I might be right when I edited my last post. When you were using #2200 that is the wear for the tool nose radius comp. That is probably why you did not see a change.

    Stevo

    Attached Thumbnails Attached Thumbnails Need Automatic Wear Offset-0832_001-pdf  


  13. #13
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0

    Default

    OK, I figured it out, with your help of course.

    #2000's are for X wear
    #2100's are for Z wear
    #2200's are for R wear

    Thanks for ALL your help.



  14. #14
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1511
    Downloads
    0
    Uploads
    0

    Default

    No problem anytime.

    It came to me when I thought of an old VTL that I use to program that the system variables had the tool nose radius comp and went in a different order then what I was use to. I thought right away that was probably it. When I came across the pdf of the system variables for your control I saw thats what it was.

    Let me know if you need anything else

    Stevo



  15. #15
    Member
    Join Date
    May 2018
    Location
    United States
    Posts
    74
    Downloads
    0
    Uploads
    0

    Default Re: Need Automatic Wear Offset

    Stevo1 so base on Cogsman1's code then we need to have #2002=0 to reset the wear tool offset to 0 at x-axis? By doing that the value of the X will be back to the value of brand new insert? (after finishing the setup).I am very interested in this discussion cause I have just learned about Macro B.Thanks
    Quote Originally Posted by stevo1 View Post
    Chucker you are correct. The local variables #1-#33 are set to clear at program end, reset button, or power down of machine. #100-#199 common variables will rest at power down. #500-#999 permanent common variables will stay until changed.P8md you are correct. If it is always the same tool and the same wear amount in the same program then that will work. Cogsman1 was refering to if there was a loop in the program that ran a set number of parts and the wear was consistant and did not need adjustments until after the 10pc then the auto adjusments would be made after 10pcs.#2002 is your geometry for tool 2 in the X. I would leave that alone if the wear that you are seeing is insert wear. I would use the #2202 X wear. The tool geometry is not what is changing it is the insert. So when the insert needs to be changed you can clear the wear offset to 0 and you are back were you started. You will also have to figure out the proper + or - to adjust. If I assume that you have your offsets to gauge line then your ID tool offset geometry should read a - number. There for your line of code is correct. Adding a + number to the - offset creates a small - telling the tool to move closer to the part and remove more material.Stevo




  16. #16
    Registered
    Join Date
    Aug 2010
    Location
    USA
    Posts
    156
    Downloads
    0
    Uploads
    0

    Default Re: Need Automatic Wear Offset

    try that #2202=[#2202+0001] line in MDI then Try #100 = 1234 and see if you have macro option on. (#100 should equal 1234)

    if #100 = 1234 does not work you may need an option.



  17. #17
    Member
    Join Date
    May 2018
    Location
    United States
    Posts
    74
    Downloads
    0
    Uploads
    0

    Default Re: Need Automatic Wear Offset

    Hi,I am very interested in you solution and I have some questions1. So if I change the tool, how the machine adjust the wear offset to the very first value?2. I have okuma osp 300, can I use VTOFX to do that?Thanks
    Quote Originally Posted by cogsman1 View Post
    I will use offset # 3 "X" axis for my sample. I will use 10 for the "trigger" to make adjustment.You will need macro "B" for this to work. (First you need to have a counter to keep track of how many parts are run.)#149=[#149+1](Then check for the number you KNOW is the trigger to make an adjustment.)IF[#149LE10]GOTO123 (skip over adjustment IF counter trigger NOT reached)#2003=[#2003+.0005] (Adjust "X" offset #3 by +.0005)#149=0(Reset counter AFTER adjustment is made)N123(Address to jump to when NOT doing adjustment)Here it is without comments. Add these lines to your program.#149=[#149+1]IF[#149LE10]GOTO123#2003=[#2003+.0005]#149=0N123




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

    Default Re: Need Automatic Wear Offset

    hi nodochau

    So if I change the tool, how the machine adjust the wear offset to the very first value?
    : by very 1st value, i guess you mean how the cnc resets the wear to zero ? whenever you use the touch_senzor to measure the offset of the cutting edge, this procedure will also reset the wear automatically

    I have okuma osp 300, can I use VTOFX to do that? : VTOFX targets the main_offset; VTWOX targets the wear so no, you can not, because you do not use the good system variable


    nodochau, i really did not had time to look over that code of yours / 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 ...


  19. #19
    Member
    Join Date
    May 2018
    Location
    United States
    Posts
    74
    Downloads
    0
    Uploads
    0

    Default Re: Need Automatic Wear Offset

    As I know our OKUMA machines do not support VTWOX I have read all their manual books and found no where had VTWOX.I like the VTWOX cause the program will be easier.
    Quote Originally Posted by deadlykitten View Post
    hi nodochau So if I change the tool, how the machine adjust the wear offset to the very first value? : by very 1st value, i guess you mean how the cnc resets the wear to zero ? whenever you use the touch_senzor to measure the offset of the cutting edge, this procedure will also reset the wear automatically I have okuma osp 300, can I use VTOFX to do that? : VTOFX targets the main_offset; VTWOX targets the wear so no, you can not, because you do not use the good system variable nodochau, i really did not had time to look over that code of yours / kindly




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

    Default Re: Need Automatic Wear Offset

    hi
    ... in tool register 1 input X_wear = whatever ( -0.345 )
    ... go MDI : V1 = VTWOX [ 1 ] : if V1 will be -0.345, than the control suports the system variable

    on osp300 this should work; check this out :

    1) osp 300 SPECIAL FUNCTIONS MANUAL

    54-4. System variableTool wear compensation amount can be set or read using system variables.
    VTWOX[n,m] ...X-axis
    VTWOZ[n,m] ...Z-axis
    n: Tool number (1 to 9999)
    m: Tool attitude number (1 to 20)

    2) osp300 PROGRAMMING MANUAL : VTWOX Tool wear amount in X-axis

    discuss it with your okuma dealer

    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 ...


Page 1 of 2 12 LastLast

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

Need Automatic Wear Offset

Need Automatic Wear Offset