'************************************************** M102.m1s *************************************'This is used to set the machine to use Z2If(GetUserLED(1030)) Then'This will tell us that that Z1is activeSwapAxis(2,3) 'Swap the axisCall SetDRO(0,GetDRO(0)+GetUserDRO(1032))'Add the X offset      Call SetDRO(1,GetDRO(1)+GetUserDRO(1033))'Add the Y offsetCall SetUserLED(1031,1)'Turn on Z2LEDCall SetUserLED(1030,0)'Turn off Z1LEDCall SetUserDRO(1030,(GetDRO(2)))'Store Z1 Height into DRO 1031Call SetDRO(2,GetUserDRO(1031))'Set the Z to the position in 1030End If     