What I do is put the frame on the floor so its straight up and down (Perpendicular). Mark that spot.
Lift frame off the floor, let it sway and come to a stop. Set on floor, Mark that spot. Measure the difference of the two spots.
That is the Z Axis.
Seems to work for me.