etherlab/EthercatSlave.py
branchethercat_from_kosmos
changeset 2641 c9deff128c37
parent 2165 02a2b5dee5e3
child 2643 b98d9e08231f
--- a/etherlab/EthercatSlave.py	Sat Jun 23 09:17:20 2018 +0200
+++ b/etherlab/EthercatSlave.py	Wed Nov 20 16:57:15 2019 +0100
@@ -18,6 +18,7 @@
 
 #------------------------------------------
 from CommonEtherCATFunction import _CommonSlave 
+from dialogs import BrowseValuesLibraryDialog
 #------------------------------------------
 
 
@@ -70,6 +71,8 @@
     def __init__(self):
         # ----------- call ethercat mng. function --------------
         self.CommonMethod = _CommonSlave(self)
+        self.SelectedRxPDOIndex = []
+        self.SelectedTxPDOIndex = []
     
     def GetIconName(self):
         return "Slave"
@@ -119,7 +122,7 @@
     def SetParamsAttribute(self, path, value):
         self.GetSlaveInfos()
         position = self.BaseParams.getIEC_Channel()
-        
+
         if path == "SlaveParams.Type":
             self.CTNParent.SetSlaveType(position, value)
             slave_type = self.CTNParent.GetSlaveType(self.GetSlavePos())