Over the years of chasing one of these things (ShopBots) back and forth, I've always kept my eyes open for things that could be automated or ideas for helpful routines. A recent thread, along with many in the past, speak of where the user has stated that they have lost position and can't find their way home because of a crash or some other issue. Some users say that they try to remember to write down the coordinates or take a picture/screenshot of it so that they can do a C3 to home the machine and then use those coordinates to get back to where they started from. I'm talking the last known working location of 0,0, where ever it may be on the table.
I know that there are many users that have been at this for a long time and can easily make up custom files/routines to do whatever, but at the same time there are some who are new to all this or some that don't care to get into the programming side of things. So with that said and with the above repeated scenario in mind, I though I'd make a little file that could be run that would save your last location or take you back to that location when desired.
There are a couple of things that you need to do to set it up, but I'll attach the main file that should work for all who want to try it out.
First, you'll need to open the file my_variables.sbc in an editor (SBedit, Notepad, etc.)which is found in your C:\SbParts\Custom folder (it would be a good idea to make a copy of this file and drop it in the SbParts folder just in case). Once you have it open, scroll all the way to the bottom and add these lines...
'These values are used for current the location snap shot
&my_LocSnapShotX=0
&my_LocSnapShotY=0
...Save and close.
Then take the attached file and place it in your C:\SbParts folder and you can run it from there just like any other file or alternately, you can put it in the C:\SbParts\Custom folder and rename it to CustomXX.sbc (were XX will be a number that isn't being used for a custom file in the custom folder. After doing this, you can then run it from the 'Cuts' menu in SB3 where it will show up as 'Location SnapShot' in the menu (This would be the recommended way).
Another option for running it is to set it up on a button with the 'Buttons' program that is in the 'Tools' menu, but this is only in SB3 3.8.XX.
I'm not at my machine today to test this thoroughly, but it should work from what I can see in simulation. I've been using a system of work offsets (up to 6 different locations) for several years, and this is a derivative of that system, but just for a quick simple current location save and return.
If someone wants to give it a try and let me know if it works as intended, that would be great. To test it, home your machine (C3), jog to another location and run the file, choosing to save the current location. That location should now be your new working 0,0. After that, if you home again or move somewhere else and do a Z2, run it again, but this time choose to return to the last saved location, it should return there and be set to 0,0. This would simulate a situation where you lost position and had to restart/reset.
Keep in mind, that if you want to return to the table base coordinates, all you have to do is key in 'ST' to set the coordinates back to the table base coordinates.
If you give it a whirl and have any troubles reply back.