etherlab/EthercatCIA402Slave.py
changeset 2147 a8b095de63e8
parent 2146 0c65c96a8379
child 2148 2225494acbf2
equal deleted inserted replaced
2146:0c65c96a8379 2147:a8b095de63e8
   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))),
   137         return [("%s_%s" % (block_infos["blocktype"], "_".join(map(str, current_location)), None),
   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(), "")))
   143         dragSource = wx.DropSource(self.GetCTRoot().AppFrame)
   143         dragSource = wx.DropSource(self.GetCTRoot().AppFrame)