My machine: 3 axis Techno Isel ~49inch x ~69 inch gantry style router table. Running the stock Techno Isel servos and motor drivers all wired up to a KFLOP/KANALOG board.
What I would like to do is write a program that allows me to adjust the XY coordinate plane to match the orientation of my stock.
In other words, I would like to push a button, touch off one corner of my stock, touch off a second corner of my stock, mathematically draw a straight line between those two points, compare that straight line to the XY machine coordinate system, and finally rotate the machine coordinate system to match.
This would allow me (I think) to quickly clamp a piece of stock to my table, run this canned program and then run the G-Code for my part. Therefore, I would no longer need to get out the dial indicator or build a fixture jig to ensure my stock is squared to the table properly before cutting my part(s).
Has anyone done something like this? I'm not even sure what a program like this would be called and I've had a rough time digging up useful information. That said, I would classify my coding ability closer to a script kiddie than anything else. If I have a couple examples to look at or insight into which libraries or functions to research, I can usually figure it out.
Any and all help would be greatly appreciated. Thanks so much for everyone's time!
-Sean
--