equal
deleted
inserted
replaced
376 raise PDOmappingException, msg |
376 raise PDOmappingException, msg |
377 else: |
377 else: |
378 numbit = None |
378 numbit = None |
379 |
379 |
380 if location["IEC_TYPE"] != "BOOL" and subentry_infos["type"] != COlocationtype: |
380 if location["IEC_TYPE"] != "BOOL" and subentry_infos["type"] != COlocationtype: |
381 raise PDOmappingException, _("Invalid type \"{a1}\"-> {a2} != {a3} for location\"{a4}\"").\ |
381 raise PDOmappingException, _("Invalid type \"{a1}\"-> {a2} != {a3} for location \"{a4}\"").\ |
382 format(a1 = location["IEC_TYPE"], a2 = COlocationtype, a3 = subentry_infos["type"] , a4 = name) |
382 format(a1 = location["IEC_TYPE"], a2 = COlocationtype, a3 = subentry_infos["type"] , a4 = name) |
383 |
383 |
384 typeinfos = node.GetEntryInfos(COlocationtype) |
384 typeinfos = node.GetEntryInfos(COlocationtype) |
385 self.IECLocations[name] = {"type":COlocationtype, "pdotype":SlavePDOType[direction], |
385 self.IECLocations[name] = {"type":COlocationtype, "pdotype":SlavePDOType[direction], |
386 "nodeid": nodeid, "index": index,"subindex": subindex, |
386 "nodeid": nodeid, "index": index,"subindex": subindex, |