Fixed variable length for double types

- added default value for variables of type double (float in PLCs)
this error avoid getting notification from type float or double.
This commit is contained in:
Federico Barresi
2022-08-05 22:21:59 +02:00
parent 5835fed96f
commit f9f0a99672

View File

@@ -74,6 +74,10 @@ namespace Sharp7.Rx
{
s7VariableAddress.Length = 8;
}
else if (type == DbType.Double)
{
s7VariableAddress.Length = 4;
}
return s7VariableAddress;
}