diff -r 015b724c30a5 -r b35bce45bc5a etherlab/EthercatCIA402Slave.py --- a/etherlab/EthercatCIA402Slave.py Sat Sep 29 14:57:15 2018 +0300 +++ b/etherlab/EthercatCIA402Slave.py Sat Sep 29 15:03:17 2018 +0300 @@ -149,18 +149,22 @@ def GetVariableLocationTree(self): axis_name = self.CTNName() current_location = self.GetCurrentLocation() - children = [{"name": name_frmt % (axis_name), - "type": LOCATION_VAR_INPUT, - "size": "W", - "IEC_type": iec_type, - "var_name": var_name_frmt % axis_name, - "location": location_frmt % ( - ".".join(map(str, current_location))), - "description": "", - "children": []} - for name_frmt, iec_type, var_name_frmt, location_frmt in - [("%s Network Position", "UINT", "%s_pos", "%%IW%s"), - ("%s Axis Ref", "AXIS_REF", "%s", "%%IW%s.402")]] + children = [ + { + "name": name_frmt % (axis_name), + "type": LOCATION_VAR_INPUT, + "size": "W", + "IEC_type": iec_type, + "var_name": var_name_frmt % axis_name, + "location": location_frmt % (".".join(map(str, current_location))), + "description": "", + "children": [] + } + for name_frmt, iec_type, var_name_frmt, location_frmt in [ + ("%s Network Position", "UINT", "%s_pos", "%%IW%s"), + ("%s Axis Ref", "AXIS_REF", "%s", "%%IW%s.402") + ] + ] children.extend(self.CTNParent.GetDeviceLocationTree( self.GetSlavePos(), current_location, axis_name)) return {