Fixed bug in program elements computation order in PLCGenerator
authorLaurent Bessard
Tue, 23 Apr 2013 12:50:53 +0200
changeset 1048 b450202605ab
parent 1047 efcc2283dd77
child 1049 ebf53b5f0777
child 1054 ef514eaacd8c
Fixed bug in program elements computation order in PLCGenerator
PLCGenerator.py
--- 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()