beremiz

72286367d0fd
Parents 9cb4d1392baf
Children acb767d6ac85
fix problem with initial values for array of structures

for structures wrong empty repetition attributes were generated
--- a/plcopen/plcopen.py Tue Jun 06 14:21:53 2017 +0300
+++ b/plcopen/plcopen.py Thu Jun 08 17:29:41 2017 +0300
@@ -2416,7 +2416,7 @@
cls = PLCOpenParser.GetElementClass("arrayValue", "value")
if cls:
- arrayValue_model = re.compile("([0-9]*)\((.*)\)$")
+ arrayValue_model = re.compile("([0-9]+)\((.*)\)$")
def setvalue(self, value):
elements = []