public static short set_io_mode(AxisConfig axisC) { NewCtrlCardBase Base_ = tag_NewCtrlCardBase[(int)axisC.tag_MotionCardManufacturer]; if (Base_ == null) { MessageBoxLog.Show(NewCtrlCardBase.GetManufacturerName((int)axisC.tag_MotionCardManufacturer) + "控制卡初始化失败!"); return(shrFail); } short ret = 0; if (axisC == null) { return(shrFail); } short shrResult = Base_.SR_set_io_mode(axisC.CardNum, 0, 0); if (shrResult != shrSuccess) { return(shrFail); } return(shrResult); }