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, }); }
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) { }
private WriteHoldingRegistersRequest(ModbusRTUDevice device) : base(device) { }
private ReadHoldingCoilsRequest(ModbusRTUDevice device) : base(device) { }
protected RTURequest(ModbusRTUDevice device) { _unitId = device.UnitID; }
private ReadInputCoilsRequest(ModbusRTUDevice device) : base(device) { }
private WriteHoldingCoilRequest(ModbusRTUDevice device) : base(device) { }