etherlab/EthercatSlave.py
changeset 2362 6d31ef14f396
parent 2360 2a3d022a7dac
child 2363 9c7da6ff6a34
equal deleted inserted replaced
2361:5d6ce74f7835 2362:6d31ef14f396
   150 
   150 
   151     def GetSlaveVariables(self, limits):
   151     def GetSlaveVariables(self, limits):
   152         return self.CTNParent.GetSlaveVariables(self.GetSlavePos(), limits)
   152         return self.CTNParent.GetSlaveVariables(self.GetSlavePos(), limits)
   153 
   153 
   154     def GetVariableLocationTree(self):
   154     def GetVariableLocationTree(self):
   155         return  {"name": self.BaseParams.getName(),
   155         return {
   156                  "type": LOCATION_CONFNODE,
   156             "name": self.BaseParams.getName(),
   157                  "location": self.GetFullIEC_Channel(),
   157             "type": LOCATION_CONFNODE,
   158                  "children": self.CTNParent.GetDeviceLocationTree(self.GetSlavePos(), self.GetCurrentLocation(), self.BaseParams.getName())
   158             "location": self.GetFullIEC_Channel(),
       
   159             "children": self.CTNParent.GetDeviceLocationTree(self.GetSlavePos(), self.GetCurrentLocation(), self.BaseParams.getName())
   159         }
   160         }
   160 
   161 
   161     def CTNGenerate_C(self, buildpath, locations):
   162     def CTNGenerate_C(self, buildpath, locations):
   162         return [],"",False
   163         return [],"",False