fix scrittura registri ModBus + fix UM
This commit is contained in:
@@ -21,6 +21,7 @@ namespace IOB_WIN_NEXT
|
||||
{
|
||||
public class IobGeneric
|
||||
{
|
||||
|
||||
#region Protected Fields
|
||||
|
||||
/// <summary>
|
||||
@@ -5157,6 +5158,7 @@ namespace IOB_WIN_NEXT
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -5164,6 +5166,7 @@ namespace IOB_WIN_NEXT
|
||||
/// </summary>
|
||||
public class iobRefreshedEventArgs : EventArgs
|
||||
{
|
||||
|
||||
#region Private Fields
|
||||
|
||||
/// <summary>
|
||||
@@ -5197,5 +5200,6 @@ namespace IOB_WIN_NEXT
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
}
|
||||
}
|
||||
@@ -388,7 +388,7 @@ namespace IOB_WIN_NEXT
|
||||
|
||||
case plcDataType.Real:
|
||||
valDouble = getScaledDouble(currMem);
|
||||
CurrVal = ModbusClient.ConvertFloatToRegisters((float)valDouble);
|
||||
CurrVal = ModbusClient.ConvertFloatToRegisters((float)valDouble, ModbusClient.RegisterOrder.HighLow);
|
||||
fatto = writeInputReg(currMem.index, CurrVal);
|
||||
break;
|
||||
|
||||
@@ -413,6 +413,7 @@ namespace IOB_WIN_NEXT
|
||||
item.value = item.reqValue;
|
||||
item.reqValue = "";
|
||||
item.lastRead = DateTime.Now;
|
||||
item.UM = currMem.unit;
|
||||
}
|
||||
#if false
|
||||
// se configurato faccio verifica write...
|
||||
|
||||
Reference in New Issue
Block a user