Springer,
I completely understand what you are trying to do and I agree with you on why you want to do it. I do it for the same reasoning that you do. You CAN do it. You are just not understanding how it works. Or do you understand now?
I do not know how else to explain it. G43 needs a value with the H(). This value with H() MUST be the tool number not the offset value. G43 knows what to do with the offset value. You are using a variable in the H() and that variable has the offset value in it. It does not have the tool number in it. IOW completly forget the offset value of -13.5286 and #10003 you do not need to do anything with them. G43 already knows what to do with them so get them out of your head.
Here is the first part of your program.
(TOOL LENGTH FOR DRILLS)
N5IF[#101NE1.]GOTO6
#107=#10003-----------variable #10003 has the offset value in it not the tool number. So when you program G43H#107 it is trying to do this G43H-0013.5286, I will state it again H() needs to be a tool number not a tool offset value. So with that said you are using tool 3 in this example because #10003 is the offset value of T3. Change your #10003 to just 3.
(TOOL LENGTH FOR DRILLS)
N5IF[#101NE1.]GOTO6
#107=3
Now when the program reads G43H#107 it equates to G43H3 and “looks” at tool offset 3.
I hope this helps clarify things. If not let me know I will give it another go.
Look at the program I posted in post #11. Use those changes in red and it will do EXACTLY what you are trying to accomplish.
Stevo


LinkBack URL
About LinkBacks




Why do you think I am having so many problems!!
I could just scream sometimes. All in time. Thanks for your help. Have a great evening!!!
I wanted too!!! Once again,,, Oh well!! ;-) Maybe tomorrow I can give it a test run. Been very busy. Again thank you for all your time and help!!!!!! 
