Support for FC protocol for Danfoss-VLT2800 added - UI Part

This commit is contained in:
Milan Hanajik
2015-02-18 16:19:37 +01:00
parent 1dbbe31eae
commit 5e4eec4d70
5 changed files with 90 additions and 46 deletions
@@ -201,7 +201,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
UInt16 serialComReference = (UInt16)(Int16)((float)0x4000 * powerArg / 100.0f + 0.5f);
byte[] msg = new byte[13];
msg[0] = (byte)pumpCfg.ModbusAddress;
msg[0] = (byte)pumpCfg.BusAddress;
msg[1] = (byte)Function.ForceMultipleCoils;
msg[2] = 0; /// Data Hi
msg[3] = 0; /// Data Lo
@@ -236,7 +236,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
UInt16 serialComReference = 0;
byte[] msg = new byte[13];
msg[0] = (byte)pumpCfg.ModbusAddress;
msg[0] = (byte)pumpCfg.BusAddress;
msg[1] = (byte)Function.ForceMultipleCoils;
msg[2] = 0; /// Data Hi
msg[3] = 0; /// Data Lo