public int Home(int axis) { _CheckAxisEnable(axis, "Home"); axisHomeDones[axis] = false; if (0 != HTM.Home(axis)) { return((int)ErrorDef.InvokeFailed); } if (detectHomeDones[axis].IsAlive) { detectHomeDones[axis].Abort(); } detectHomeDones[axis] = new Thread(new ParameterizedThreadStart(FuncDetectHomeDone)); Thread.Sleep(200); detectHomeDones[axis].Start(axis); return((int)ErrorDef.Success); }