diff --git a/LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/Helper.cs b/LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/Helper.cs index 88cd45d4..000e10c0 100644 --- a/LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/Helper.cs +++ b/LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/Helper.cs @@ -410,7 +410,7 @@ static public int GetIntFromHexString(string myString) static public uint GetUIntFromHexString(string myString) { uint val = 0; - foreach (char tmp in myString.ToLower().Replace("dw#16#", "").Replace("w#16#", "").Replace("b#16#", "").Replace("\t", "")) + foreach (char tmp in myString.ToLower().Replace("//", "").Replace("dw#16#", "").Replace("w#16#", "").Replace("b#16#", "").Replace("\t", "").Trim()) { val *= 16; switch (tmp)