etherlab/etherlab.py
changeset 2083 0f7ab170c862
parent 2082 caae3ad2d03b
child 2084 579af800b359
equal deleted inserted replaced
2082:caae3ad2d03b 2083:0f7ab170c862
   207             axis_name = self.CTNName()
   207             axis_name = self.CTNName()
   208             current_location = self.GetCurrentLocation()
   208             current_location = self.GetCurrentLocation()
   209             children = [{"name": "%s Axis Ref" % (axis_name),
   209             children = [{"name": "%s Axis Ref" % (axis_name),
   210                          "type": LOCATION_VAR_INPUT,
   210                          "type": LOCATION_VAR_INPUT,
   211                          "size": "W",
   211                          "size": "W",
   212                          "IEC_type": "INT",
   212                          "IEC_type": "AXIS_REF",
   213                          "var_name": axis_name,
   213                          "var_name": axis_name,
   214                          "location": "%%IW%s.0" % (".".join(map(str, current_location))),
   214                          "location": "%%IW%s.0" % (".".join(map(str, current_location))),
   215                          "description": "",
   215                          "description": "",
   216                          "children": []}]
   216                          "children": []}]
   217             children.extend(self.CTNParent.GetDeviceLocationTree(self.GetSlavePos(), current_location, axis_name))
   217             children.extend(self.CTNParent.GetDeviceLocationTree(self.GetSlavePos(), current_location, axis_name))