Ok, I've been playing with the latest beta releases and had heard previously mentioned that tool table setup would be available at some point. I'm hoping but currently don't see a way to accomplish the work flow I am looking for. Maybe someone has already done it and I've missed it? Guess my question is how are those of you using fixed tools running through your table and setting up all your tools initially and then if you break a tool?
So obviously no programmer here (but basic understanding, which isn't obvious in the mess below as I just chunked the larger files together today), and this obviously doesn't work. Did manage to get it parts working separately thanks to Gerri and whomever wrote the fixed tool probe macro. But I wanted something that flows automatically instead of 1) Changing the tool number 2) Moving to a probe measurement area (which is set to tool change position) 3) Setting zero at the fixed probe location with reference tool 4) changing to next tool 5) using tool measure macro to measure tool and write to tool table 6) Rinse and repeat the last two steps
What I have been bastardizing all weekend...yeah, I'm slow. Is a compilation of Gerri's macros and the tool height set to table macro. I managed to get the first part working where it asks to start the macro y/ n , then requests a tool number with 0 exiting the routine and anything above 1 sends you on (and loops back to the tool number). Next I added in if tool 1 was selected, it takes you to set zero at the probe location, moves there and probes. Any tool above 1 just runs the tool height measure portion. So after I added in the last two sections, it all went to crap. Ok, honestly it's all crap as I'm not programmer, just hacking up someone else's work. But I'm learning slowly how things work C#. I also know that Jerri's code uses some of his custom fields, which will have to be changed.
Also don't want this macro to mess with G54-G59 in case you break a tool in the middle of an operation. Haven't gotten far enough along to figure out if I need to use the temp offset or just reset the DRO to its original offset. Still pondering how that portion works as I've always just worked in G54 space.
So if anyone has something in place that is similar, I'd love to see it it you don't mind sharing. Otherwise, here is my mess of a start to this semi-automated tool height measuring routine. Previously it was just one small file which fired off other macros, but wasn't sure how to loop things to continue asking for new tools. Thought making one file would be easier and of course I'm wrong...LOL. Anyway, I'm just really getting started learning C#, so don't judge too harshly on this mess. I think it does at least outline what I'm trying to accomplish.
Also, I'm using notepad++ with the UCCNC style and other files added. But the compiler error file always gives me the wrong line numbers for the errors. Is there a work around or fix for that? It would help a lot if I knew which line to find all my errors...LOL.