etherlab/EtherCATManagementEditor.py
changeset 2377 88a9d64560d3
parent 2375 cfa68a06a24d
child 2379 015b724c30a5
equal deleted inserted replaced
2376:47775c9367bd 2377:88a9d64560d3
  1690                 # append address
  1690                 # append address
  1691                 hex_address = "{:0>4x}".format(address-1)
  1691                 hex_address = "{:0>4x}".format(address-1)
  1692                 row_data.append(hex_address)
  1692                 row_data.append(hex_address)
  1693 
  1693 
  1694                 # append description
  1694                 # append description
  1695                 if self.RegisterDescriptionDict.has_key(hex_address):
  1695                 if hex_address in self.RegisterDescriptionDict:
  1696                     row_data.append(self.RegisterDescriptionDict[hex_address])
  1696                     row_data.append(self.RegisterDescriptionDict[hex_address])
  1697                 else:
  1697                 else:
  1698                     row_data.append("")
  1698                     row_data.append("")
  1699 
  1699 
  1700                 # append Decimal value
  1700                 # append Decimal value