Danfoss-VLT2800-Pump functions OK, TODO: control the valve of the pump
This commit is contained in:
@@ -14,24 +14,26 @@ 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 ComPortNr;
|
||||
public int BaudRate;
|
||||
public Parity Parity;
|
||||
public int DataBits;
|
||||
public StopBits StopBits;
|
||||
public Handshake Handshake;
|
||||
|
||||
|
||||
/// Private parameterless constructor invoked by all other (public) constructors
|
||||
PumpCfg()
|
||||
{
|
||||
Name = "Ambient";
|
||||
Delay = 1;
|
||||
ModbusAddress = 1;
|
||||
ParentName = string.Empty;
|
||||
ComPortNr = 6;
|
||||
BaudRate = 19200;
|
||||
Parity = System.IO.Ports.Parity.None;
|
||||
DataBits = 8;
|
||||
ComPortNr = 5;
|
||||
BaudRate = 9600;
|
||||
DataBits = 8;
|
||||
Parity = System.IO.Ports.Parity.None;
|
||||
StopBits = System.IO.Ports.StopBits.One;
|
||||
Handshake = System.IO.Ports.Handshake.None;
|
||||
}
|
||||
|
||||
public PumpCfg(IComponentFactory factory)
|
||||
@@ -42,8 +44,8 @@ namespace TBF.BenchControl.Danfoss.VLT2800
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
return string.Format("Name={0}, Com{1}, {2}Bd, {3}-bits, parity={4}, stopBits={5}, {6}",
|
||||
Name, ComPortNr, BaudRate, DataBits, Parity, StopBits, Handshake);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user