mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 11:11:23 +00:00
Added performance improvements for cyclic polling by using single frame building of multiple registers
- cleaned and refactored codebase
This commit is contained in:
@@ -41,9 +41,12 @@ namespace MewtocolNet {
|
||||
public static RegisterType? GetDefaultRegisterType (Type type) =>
|
||||
conversions.FirstOrDefault(x => x.GetDotnetType() == type)?.GetPlcRegisterType();
|
||||
|
||||
public static Type GetDefaultPlcVarType (this PlcVarType type) =>
|
||||
public static Type GetDefaultRegisterHoldingType (this PlcVarType type) =>
|
||||
conversions.FirstOrDefault(x => x.GetPlcVarType() == type)?.GetHoldingRegisterType();
|
||||
|
||||
public static Type GetDefaultRegisterHoldingType (this Type type) =>
|
||||
conversions.FirstOrDefault(x => x.GetDotnetType() == type)?.GetHoldingRegisterType();
|
||||
|
||||
public static Type GetDefaultDotnetType (this PlcVarType type) =>
|
||||
conversions.FirstOrDefault(x => x.GetPlcVarType() == type)?.GetDotnetType();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user