PLCGenerator.py
changeset 1048 b450202605ab
parent 1032 c4989e53f9c3
child 1134 1c7a4ad86aa1
equal deleted inserted replaced
1047:efcc2283dd77 1048:b450202605ab
   881                     otherInstances["outVariables&coils"].append(instance)
   881                     otherInstances["outVariables&coils"].append(instance)
   882             orderedInstances.sort()
   882             orderedInstances.sort()
   883             otherInstances["outVariables&coils"].sort(SortInstances)
   883             otherInstances["outVariables&coils"].sort(SortInstances)
   884             otherInstances["blocks"].sort(SortInstances)
   884             otherInstances["blocks"].sort(SortInstances)
   885             instances = [instance for (executionOrderId, instance) in orderedInstances]
   885             instances = [instance for (executionOrderId, instance) in orderedInstances]
   886             instances.extend(otherInstances["connectors"] + otherInstances["outVariables&coils"] + otherInstances["blocks"])
   886             instances.extend(otherInstances["outVariables&coils"] + otherInstances["blocks"] + otherInstances["connectors"])
   887             for instance in instances:
   887             for instance in instances:
   888                 if isinstance(instance, (plcopen.fbdObjects_outVariable, plcopen.fbdObjects_inOutVariable)):
   888                 if isinstance(instance, (plcopen.fbdObjects_outVariable, plcopen.fbdObjects_inOutVariable)):
   889                     connections = instance.connectionPointIn.getconnections()
   889                     connections = instance.connectionPointIn.getconnections()
   890                     if connections is not None:
   890                     if connections is not None:
   891                         expression = self.ComputeExpression(body, connections)
   891                         expression = self.ComputeExpression(body, connections)