equal
deleted
inserted
replaced
1496 action.addReference() |
1496 action.addReference() |
1497 action.setReferenceName(params["value"]) |
1497 action.setReferenceName(params["value"]) |
1498 else: |
1498 else: |
1499 action.addInline() |
1499 action.addInline() |
1500 action.setInlineContent(params["value"]) |
1500 action.setInlineContent(params["value"]) |
1501 if params["indicator"] != "": |
|
1502 action.setIndicator(params["indicator"]) |
|
1503 if "duration" in params: |
1501 if "duration" in params: |
1504 action.setDuration(params["duration"]) |
1502 action.setDuration(params["duration"]) |
|
1503 if "indicator" in params: |
|
1504 action.setIndicator(params["indicator"]) |
1505 self.action.append(action) |
1505 self.action.append(action) |
1506 setattr(cls, "setActions", setActions) |
1506 setattr(cls, "setActions", setActions) |
1507 |
1507 |
1508 def getActions(self): |
1508 def getActions(self): |
1509 actions = [] |
1509 actions = [] |
1520 if duration: |
1520 if duration: |
1521 params["duration"] = duration |
1521 params["duration"] = duration |
1522 indicator = action.getIndicator() |
1522 indicator = action.getIndicator() |
1523 if indicator: |
1523 if indicator: |
1524 params["indicator"] = indicator |
1524 params["indicator"] = indicator |
1525 else: |
|
1526 params["indicator"] = "" |
|
1527 actions.append(params) |
1525 actions.append(params) |
1528 return actions |
1526 return actions |
1529 setattr(cls, "getActions", getActions) |
1527 setattr(cls, "getActions", getActions) |
1530 |
1528 |
1531 if "inVariable" in PLCOpenClasses: |
1529 if "inVariable" in PLCOpenClasses: |