PLCGenerator.py
changeset 1420 71b1545d746f
parent 1418 c97dc5281419
child 1450 44bf0ba866e9
equal deleted inserted replaced
1419:d6adca8b6697 1420:71b1545d746f
   391                        ("(", ())]
   391                        ("(", ())]
   392             args = []
   392             args = []
   393             single = task.getsingle()
   393             single = task.getsingle()
   394             # Single argument if exists
   394             # Single argument if exists
   395             if single is not None:
   395             if single is not None:
   396                 resrce += [("SINGLE := ", ()),
   396                 if single[0]=='[' and single[-1]==']' :
       
   397                     SNGLKW = "MULTI"
       
   398                 else:
       
   399                     SNGLKW = "SINGLE"
       
   400                 resrce += [(SNGLKW + " := ", ()),
   397                            (single, (tagname, "task", task_number, "single")),
   401                            (single, (tagname, "task", task_number, "single")),
   398                            (",", ())]
   402                            (",", ())]
   399             # Interval argument if exists
   403             # Interval argument if exists
   400             interval = task.getinterval()
   404             interval = task.getinterval()
   401             if interval is not None:
   405             if interval is not None: