Adding support for structure variable list generation module in matiec
authorlbessard
Tue, 26 Feb 2008 15:09:55 +0100
changeset 168 fb500cc79164
parent 167 893ff98ab3be
child 169 393193e7590a
Adding support for structure variable list generation module in matiec
PLCGenerator.py
--- a/PLCGenerator.py	Fri Feb 08 14:37:48 2008 +0100
+++ b/PLCGenerator.py	Tue Feb 26 15:09:55 2008 +0100
@@ -674,7 +674,7 @@
                     if action["type"] == "reference":
                         self.GenerateSFCAction(action["value"], pou)
                     else:
-                        action_name = "INLINE%d"%self.GetActionNumber()
+                        action_name = "%s_INLINE%d"%(step_name.upper(), self.GetActionNumber())
                         self.SFCNetworks["Actions"][action_name] = "    %s\n"%action["value"]
                         action_infos["content"] = action_name
                     self.SFCNetworks["Steps"][step_name]["actions"].append(action_infos)