fix max value for UDINT and ULINT types
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 12 Sep 2017 14:18:50 +0300
changeset 1798 7ec48bdc7a57
parent 1797 40a5fbaf0038
child 1799 9fd7bbf6ec45
fix max value for UDINT and ULINT types
plcopen/definitions.py
--- a/plcopen/definitions.py	Tue Sep 12 14:13:39 2017 +0300
+++ b/plcopen/definitions.py	Tue Sep 12 14:18:50 2017 +0300
@@ -117,8 +117,8 @@
     ("LINT",  (-2**31, 2**31 - 1)),
     ("USINT", (0,      2**8 - 1)),
     ("UINT",  (0,      2**16 - 1)),
-    ("UDINT", (0,      2**31 - 1)),
-    ("ULINT", (0,      2**31 - 1))
+    ("UDINT", (0,      2**32 - 1)),
+    ("ULINT", (0,      2**32 - 1))
 ]
 
 ANY_TO_ANY_FILTERS = {