equal
deleted
inserted
replaced
335 index = ExtractHexDecValue(entry.getIndex().getcontent()) |
335 index = ExtractHexDecValue(entry.getIndex().getcontent()) |
336 subindex = ExtractHexDecValue(entry.getSubIndex()) |
336 subindex = ExtractHexDecValue(entry.getSubIndex()) |
337 if slave_variables.get((index, subindex), None) is not None: |
337 if slave_variables.get((index, subindex), None) is not None: |
338 pdo_mapping_match["matching"] += 1 |
338 pdo_mapping_match["matching"] += 1 |
339 |
339 |
340 if pdo.getFixed() != True: |
340 if pdo.getFixed() is not True: |
341 pdo_mapping_match["matching"] += \ |
341 pdo_mapping_match["matching"] += \ |
342 module_extra_params["max_pdo_size"] - \ |
342 module_extra_params["max_pdo_size"] - \ |
343 pdo_mapping_match["count"] |
343 pdo_mapping_match["count"] |
344 |
344 |
345 elif pdo.getMandatory(): |
345 elif pdo.getMandatory(): |
436 "index": pdo_index, |
436 "index": pdo_index, |
437 "name": ExtractName(pdo.getName()), |
437 "name": ExtractName(pdo.getName()), |
438 "type": pdo_type, |
438 "type": pdo_type, |
439 "entries": entries_infos, |
439 "entries": entries_infos, |
440 "entries_number": len(entries_infos), |
440 "entries_number": len(entries_infos), |
441 "fixed": pdo.getFixed() == True}) |
441 "fixed": pdo.getFixed() is True}) |
442 |
442 |
443 if PdoConfig and PdoAssign: |
443 if PdoConfig and PdoAssign: |
444 dynamic_pdos = {} |
444 dynamic_pdos = {} |
445 dynamic_pdos_number = 0 |
445 dynamic_pdos_number = 0 |
446 for category, min_index, max_index in [("Inputs", 0x1600, 0x1800), |
446 for category, min_index, max_index in [("Inputs", 0x1600, 0x1800), |