示例#1
0
 public PLCRegisterCollection(PLCRegisterType type, ModbusDriver driver)
 {
     _registers = new Dictionary <int, PLCRegister>();
     _type      = type;
 }
示例#2
0
文件: PLCUnit.cs 项目: qubeczek/HAS
 static PLCUnit()
 {
     _modbus = new ModbusDriver();
     _r      = new PLCRegisterCollection(PLCRegisterType.R, _modbus);
     _d      = new PLCRegisterCollection(PLCRegisterType.D, _modbus);
 }