equal
deleted
inserted
replaced
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")), |