PLCGenerator.py
changeset 1048 b450202605ab
parent 1032 c4989e53f9c3
child 1134 1c7a4ad86aa1
--- a/PLCGenerator.py	Tue Apr 23 01:19:39 2013 +0200
+++ b/PLCGenerator.py	Tue Apr 23 12:50:53 2013 +0200
@@ -883,7 +883,7 @@
             otherInstances["outVariables&coils"].sort(SortInstances)
             otherInstances["blocks"].sort(SortInstances)
             instances = [instance for (executionOrderId, instance) in orderedInstances]
-            instances.extend(otherInstances["connectors"] + otherInstances["outVariables&coils"] + otherInstances["blocks"])
+            instances.extend(otherInstances["outVariables&coils"] + otherInstances["blocks"] + otherInstances["connectors"])
             for instance in instances:
                 if isinstance(instance, (plcopen.fbdObjects_outVariable, plcopen.fbdObjects_inOutVariable)):
                     connections = instance.connectionPointIn.getconnections()