PLCGenerator.py
changeset 1420 71b1545d746f
parent 1418 c97dc5281419
child 1450 44bf0ba866e9
--- a/PLCGenerator.py	Thu Jun 12 18:15:04 2014 +0200
+++ b/PLCGenerator.py	Fri Jun 20 21:36:23 2014 +0200
@@ -393,7 +393,11 @@
             single = task.getsingle()
             # Single argument if exists
             if single is not None:
-                resrce += [("SINGLE := ", ()),
+                if single[0]=='[' and single[-1]==']' :
+                    SNGLKW = "MULTI"
+                else:
+                    SNGLKW = "SINGLE"
+                resrce += [(SNGLKW + " := ", ()),
                            (single, (tagname, "task", task_number, "single")),
                            (",", ())]
             # Interval argument if exists