PLCGenerator.py
changeset 1742 92932cd370a4
parent 1740 b789b695b5c6
child 1743 c3c3d1318130
equal deleted inserted replaced
1741:dd94b9a68c61 1742:92932cd370a4
   399                 if len(single) == 0:
   399                 if len(single) == 0:
   400                     msg = _("Source signal has to be defined for single task '{a1}' in resource '{a2}.{a3}'.").\
   400                     msg = _("Source signal has to be defined for single task '{a1}' in resource '{a2}.{a3}'.").\
   401                           format(a1 = task.getname(), a2 = config_name, a3 = resource.getname())
   401                           format(a1 = task.getname(), a2 = config_name, a3 = resource.getname())
   402                     raise PLCGenException, msg
   402                     raise PLCGenException, msg
   403 
   403 
   404                 if single[0]=='[' and single[-1]==']':
   404                 if single[0] == '[' and single[-1] == ']':
   405                     SNGLKW = "MULTI"
   405                     SNGLKW = "MULTI"
   406                 else:
   406                 else:
   407                     SNGLKW = "SINGLE"
   407                     SNGLKW = "SINGLE"
   408                 resrce += [(SNGLKW + " := ", ()),
   408                 resrce += [(SNGLKW + " := ", ()),
   409                            (single, (tagname, "task", task_number, "single")),
   409                            (single, (tagname, "task", task_number, "single")),