Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <summary>
 /// 构造方法重载
 /// </summary>
 /// <param name="port"></param>
 /// <param name="converter"></param>
 public ADAM4017Model(ADAM4017Port port, ADAM4017Converter converter) : this((uint)port, converter)
 {
 }