/// <summary> /// 设备启动参数厨师化 /// </summary> /// <param name="port"></param> /// <param name="converter"></param> public ADAM4017Model(uint port, ADAM4017Converter converter) { if (port > 7) //设备没有大于7的接口 { port = 7; } Port = (ADAM4017Port)port; PortValue = (int)port; Converter = converter; }
/// <summary> /// 构造方法重载 /// </summary> /// <param name="port"></param> /// <param name="converter"></param> public ADAM4017Model(ADAM4017Port port, ADAM4017Converter converter) : this((uint)port, converter) { }