General documentation for shopbot is available here. Some notes on usage of the 5-axis are available here.
Below is a video of the tool length measurement routine. Be careful running this file blindly with a long tool, as a collision could result.
Successfully running this routine will show the distance between tool tip and center of B axis rotation. This measurement is used when toolpathing.