equal
deleted
inserted
replaced
665 |
665 |
666 # Get the entry info |
666 # Get the entry info |
667 subentry_infos = slave.GetSubentryInfos(index, subindex) |
667 subentry_infos = slave.GetSubentryInfos(index, subindex) |
668 if subentry_infos["type"] != COlocationtype: |
668 if subentry_infos["type"] != COlocationtype: |
669 raise PDOmappingException, _("Invalid type \"{a1}\"-> {a2} != {a3} for location \"{a4}\"").\ |
669 raise PDOmappingException, _("Invalid type \"{a1}\"-> {a2} != {a3} for location \"{a4}\"").\ |
670 format( a1=location["IEC_TYPE"], a2=COlocationtype, a3=subentry_infos["type"], a4=name) |
670 format(a1=location["IEC_TYPE"], a2=COlocationtype, a3=subentry_infos["type"], a4=name) |
671 |
671 |
672 IECLocations[name] = COlocationtype |
672 IECLocations[name] = COlocationtype |
673 pointers[(index, subindex)] = name |
673 pointers[(index, subindex)] = name |
674 return pointers |
674 return pointers |
675 |
675 |