etherlab/EthercatCFileGenerator.py
changeset 2140 56643934495c
parent 2139 1565239349a8
child 2144 bbd78ac226d0
equal deleted inserted replaced
2139:1565239349a8 2140:56643934495c
   320                                 index = ExtractHexDecValue(entry.getIndex().getcontent())
   320                                 index = ExtractHexDecValue(entry.getIndex().getcontent())
   321                                 subindex = ExtractHexDecValue(entry.getSubIndex())
   321                                 subindex = ExtractHexDecValue(entry.getSubIndex())
   322                                 if slave_variables.get((index, subindex), None) is not None:
   322                                 if slave_variables.get((index, subindex), None) is not None:
   323                                     pdo_mapping_match["matching"] += 1
   323                                     pdo_mapping_match["matching"] += 1
   324                         
   324                         
   325                             if pdo.getFixed() == True:
   325                             if pdo.getFixed() != True:
   326                                 pdo_mapping_match["matching"] += \
   326                                 pdo_mapping_match["matching"] += \
   327                                     module_extra_params["max_pdo_size"] - \
   327                                     module_extra_params["max_pdo_size"] - \
   328                                     pdo_mapping_match["count"]
   328                                     pdo_mapping_match["count"]
   329                         
   329                         
   330                         elif pdo.getMandatory():
   330                         elif pdo.getMandatory():