/// <summary> /// IO输出 /// </summary> /// <param name="io">IO类对象</param> /// <param name="ioValue">输出状态</param> /// <returns></returns> public static short SetOutputIoBit(IOParameter io, short ioValue) { short shrResult = 0; if (io == null) { return(shrFail); } NewCtrlCardBase Base_ = tag_NewCtrlCardBase[(int)io.tag_MotionCardManufacturer]; if (Base_ == null) { MessageBoxLog.Show(NewCtrlCardBase.GetManufacturerName((int)io.tag_MotionCardManufacturer) + "控制卡初始化失败!"); return(shrFail); } shrResult = Base_.SR_SetOutputBit(io.CardNum, io.IOBit, ioValue); if (shrResult != shrSuccess) { return(shrFail); } return(shrSuccess); }