mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-15 11:22:52 +00:00
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:
@@ -74,6 +74,10 @@ namespace Sharp7.Rx
|
||||
{
|
||||
s7VariableAddress.Length = 8;
|
||||
}
|
||||
else if (type == DbType.Double)
|
||||
{
|
||||
s7VariableAddress.Length = 4;
|
||||
}
|
||||
|
||||
return s7VariableAddress;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user