# HG changeset patch # User Laurent Bessard # Date 1366714253 -7200 # Node ID b450202605ab6fb3ddd475bafb81ca067a0f1184 # Parent efcc2283dd7744a835f750bb4bbdc0f3b737bc0a Fixed bug in program elements computation order in PLCGenerator diff -r efcc2283dd77 -r b450202605ab 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()