equal
deleted
inserted
replaced
377 - IEC_type is an IEC type like BOOL/BYTE/SINT/... |
377 - IEC_type is an IEC type like BOOL/BYTE/SINT/... |
378 - location is a string of this variable's location, like "%IX0.0.0" |
378 - location is a string of this variable's location, like "%IX0.0.0" |
379 ''' |
379 ''' |
380 children = [] |
380 children = [] |
381 for child in self.IECSortedChilds(): |
381 for child in self.IECSortedChilds(): |
382 children.append({"name": child.BaseParams.getName(), |
382 children.append(child.GetVariableLocationTree()) |
383 "type": LOCATION_PLUGIN, |
383 return {"name": self.BaseParams.getName(), |
384 "children": child.GetVariableLocationTree()}) |
384 "type": LOCATION_PLUGIN, |
385 return children |
385 "location": self.GetFullIEC_Channel(), |
|
386 "children": children} |
386 |
387 |
387 def GetPlugInfos(self): |
388 def GetPlugInfos(self): |
388 childs = [] |
389 childs = [] |
389 # reorder childs by IEC_channels |
390 # reorder childs by IEC_channels |
390 for child in self.IECSortedChilds(): |
391 for child in self.IECSortedChilds(): |
1732 data = builder.GetBinaryCode() |
1733 data = builder.GetBinaryCode() |
1733 if data is not None : |
1734 if data is not None : |
1734 if self._connector.NewPLC(MD5, data, extrafiles): |
1735 if self._connector.NewPLC(MD5, data, extrafiles): |
1735 if self.AppFrame is not None: |
1736 if self.AppFrame is not None: |
1736 self.AppFrame.CloseDebugTabs() |
1737 self.AppFrame.CloseDebugTabs() |
1737 self.AppFrame.RefreshInstanceTree() |
1738 self.AppFrame.RefreshInstancesTree() |
1738 self.UnsubscribeAllDebugIECVariable() |
1739 self.UnsubscribeAllDebugIECVariable() |
1739 self.ProgramTransferred() |
1740 self.ProgramTransferred() |
1740 self.logger.write(_("Transfer completed successfully.\n")) |
1741 self.logger.write(_("Transfer completed successfully.\n")) |
1741 else: |
1742 else: |
1742 self.logger.write_error(_("Transfer failed\n")) |
1743 self.logger.write_error(_("Transfer failed\n")) |