Hi to all,
I want to write a macro which will help me to probe a rectangular or circular stock. How I wanted that to work:
1. set G43 Hx (my probe is measured and entered in the tool table);
2. jog the probe down near the stock;
3. probe the stock from the X+ plus side (double probe);
4. set X to zero on the touch point;
5. probe will go up 5 mm or so and then continue to go X+ another 5mm
6. probe for Z zero
7. Now the tricky part:
I need to have a window with 2 radio buttons (1 for rectangular shape and 2 for circular shape)
3 fields (for rectangular shape - X length Y length and/or one for circular shape - diameter).
8. based on the values entered on the window fields the probe will travel (at Z measured before + 3mm) to a X measures + 5 mm
9 probe X - and Z up + 3
10. split that distance and go center X (of the stock).
11. repeat procedures for Y (to find center).
I can manage the probe procedures, but I don't know how to create the window and use the entered values for further calculations.
If something like this is already there tell me since I don't want to reinvent the wheel.
I contacted cahit via PM because his divideby2 plugin is very close to what I need (with some addition's), but I did not received an answer.
Any help will be very appreciated.
Thank you
Gabi