internal static WriteHoldingCoilRequest CreateNew(ModbusRTUDevice device, ushort address, bool value)
 {
     return(new WriteHoldingCoilRequest(device)
     {
         FunctionCode = (byte)enFunctionCode.WriteHoldingCoil,
         Address = address,
         Value = value,
     });
 }
 internal static ReadInputRegistersRequest CreateNew(ModbusRTUDevice device, ushort address, ushort length)
 {
     return(new ReadInputRegistersRequest(device)
     {
         FunctionCode = (byte)enFunctionCode.ReadInputRegisters,
         Address = address,
         Length = length,
     });
 }
예제 #3
0
 internal static WriteHoldingRegistersRequest CreateNew(ModbusRTUDevice device, ushort address, short[] values)
 {
     return(new WriteHoldingRegistersRequest(device)
     {
         FunctionCode = (byte)enFunctionCode.WriteHoldingRegisters,
         Address = address,
         Values = values,
     });
 }
 private ReadInputRegistersRequest(ModbusRTUDevice device) : base(device)
 {
 }
예제 #5
0
 private WriteHoldingRegistersRequest(ModbusRTUDevice device) : base(device)
 {
 }
 private ReadHoldingCoilsRequest(ModbusRTUDevice device) : base(device)
 {
 }
예제 #7
0
 protected RTURequest(ModbusRTUDevice device)
 {
     _unitId = device.UnitID;
 }
 private ReadInputCoilsRequest(ModbusRTUDevice device) : base(device)
 {
 }
 private WriteHoldingCoilRequest(ModbusRTUDevice device) : base(device)
 {
 }