etherlab/EthercatCIA402Slave.py
changeset 2148 2225494acbf2
parent 2147 a8b095de63e8
child 2152 e6946c298a42
equal deleted inserted replaced
2147:a8b095de63e8 2148:2225494acbf2
   132                  "children": children,
   132                  "children": children,
   133         }
   133         }
   134     
   134     
   135     def CTNGlobalInstances(self):
   135     def CTNGlobalInstances(self):
   136         current_location = self.GetCurrentLocation()
   136         current_location = self.GetCurrentLocation()
   137         return [("%s_%s" % (block_infos["blocktype"], "_".join(map(str, current_location)), None),
   137         return [("%s_%s" % (block_infos["blocktype"], "_".join(map(str, current_location))),
   138                  "EtherLab%s" % block_infos["blocktype"], "") for block_infos in GLOBAL_INSTANCES]
   138                  "EtherLab%s" % block_infos["blocktype"], "") for block_infos in GLOBAL_INSTANCES]
   139     
   139     
   140     def _getCIA402AxisRef(self):
   140     def _getCIA402AxisRef(self):
   141         data = wx.TextDataObject(str(("%%IW%s.0" % ".".join(map(str, self.GetCurrentLocation())), 
   141         data = wx.TextDataObject(str(("%%IW%s.0" % ".".join(map(str, self.GetCurrentLocation())), 
   142                                       "location", "AXIS_REF", self.CTNName(), "")))
   142                                       "location", "AXIS_REF", self.CTNName(), "")))