LPCBeremiz.py
changeset 530 862d9adcd904
parent 526 68375ccdf968
child 539 6ff2c1d34640
equal deleted inserted replaced
529:ffe0fba7e427 530:862d9adcd904
   304                 next = self._GetChildBySomething("IEC_Channel", loc[:i + 1])
   304                 next = self._GetChildBySomething("IEC_Channel", loc[:i + 1])
   305                 if next is not None:
   305                 if next is not None:
   306                     i += 1
   306                     i += 1
   307                     group = next
   307                     group = next
   308             var_loc = loc[i:]
   308             var_loc = loc[i:]
   309             for variable in group["children"]:
   309             for variable in _GetModuleChildren(group):
   310                 if variable["location"] == var_loc:
   310                 if variable["location"] == var_loc:
   311                     if location["DIR"] != LOCATION_DIRS[variable["type"]]:
   311                     if location["DIR"] != LOCATION_DIRS[variable["type"]]:
   312                         raise Exception, "Direction conflict in variable definition"
   312                         raise Exception, "Direction conflict in variable definition"
   313                     if location["IEC_TYPE"] != variable["IEC_type"]:
   313                     if location["IEC_TYPE"] != variable["IEC_type"]:
   314                         raise Exception, "Type conflict in variable definition"
   314                         raise Exception, "Type conflict in variable definition"