'************************************************** M101.m1s *************************************'This is used to set the machine to use Z1If(GetUserLED(1031)) Then'This will tell us that that Z2 is activeResetAxisSwap()'Set the axis back Call SetDRO(0,GetDRO(0)-GetUserDRO(1032))'Subtract the X offset      Call SetDRO(1,GetDRO(1)-GetUserDRO(1033))'subtract the Y offsetCall SetUserLED(1030,1)'Turn on Z1 LEDCall SetUserLED(1031,0)'Turn off Z2 LEDCall SetUserDRO(1031,GetDRO(2))'Store Z2 height into DRO 1031Call SetDRO(2,GetUserDRO(1030))'Set the Z to the position in 1030End If  