public static void MCC_GoHome() { //只有XYZ需GOHOME MCCL.MCC_EcatSetHomeAxis(1, 1, 1, 0, 0, 0, 0, 0); for (int i = 0; i < 8; i++) { MCCL.MCC_EcatSetHomeMode(28, i); MCCL.MCC_EcatSetHomeSwitchSpeed(1000, i); MCCL.MCC_EcatSetHomeZeroSpeed(50, i); } MCCL.MCC_EcatHome(); }