Support for FC protocol for Danfoss-VLT2800 added - UI Part
This commit is contained in:
@@ -14,8 +14,9 @@ namespace TBF.BenchControl.Danfoss.VLT2800
|
||||
///
|
||||
/// Serialized parameters
|
||||
///
|
||||
public int Delay; // Delay of the pump function in [s] (affects the duration of transition sequence steps)
|
||||
public int ModbusAddress; // Modbus address in range 1..247
|
||||
public int Delay; // Delay of the pump function in [s] (affects the duration of transition sequence steps)
|
||||
public PumpProtocol Protocol; // Modbus or FC
|
||||
public int BusAddress; // Modbus or FC address in range 1..247 (Modbus) or 1..31 (FC)
|
||||
public int ComPortNr;
|
||||
public int BaudRate;
|
||||
public Parity Parity;
|
||||
@@ -25,9 +26,10 @@ namespace TBF.BenchControl.Danfoss.VLT2800
|
||||
/// Private parameterless constructor invoked by all other (public) constructors
|
||||
PumpCfg()
|
||||
{
|
||||
Name = "Ambient";
|
||||
Name = "Pump-Danfoss";
|
||||
Delay = 1;
|
||||
ModbusAddress = 1;
|
||||
Protocol = PumpProtocol.Modbus;
|
||||
BusAddress = 1;
|
||||
ParentName = string.Empty;
|
||||
ComPortNr = 5;
|
||||
BaudRate = 9600;
|
||||
@@ -44,8 +46,8 @@ namespace TBF.BenchControl.Danfoss.VLT2800
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
return string.Format("Name={0}, Delay={1}s, ModbusAddress={2}, Com{3}, {4}Bd, {5}-bits, parity={6}, stopBits={7}",
|
||||
Name, Delay, ModbusAddress, ComPortNr, BaudRate, DataBits, Parity, StopBits);
|
||||
return string.Format("Name={0}, Delay={1}s, Protocol={2}, BusAddress={3}, Com{4}, {5}Bd, {6}-bits, parity={7}, stopBits={8}",
|
||||
Name, Delay, Protocol, BusAddress, ComPortNr, BaudRate, DataBits, Parity, StopBits);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user