plcopen/plcopen.py
changeset 1616 3638463d6e02
parent 1611 5e64d552b25a
child 1619 163d3a883575
--- a/plcopen/plcopen.py	Mon Dec 26 14:01:54 2016 +0300
+++ b/plcopen/plcopen.py	Wed Dec 28 16:33:50 2016 +0300
@@ -1276,9 +1276,7 @@
         transition.setname(name)
         transition.setbodyType(body_type)
         if body_type == "ST":
-            transition.setanyText(":= ;")
-        elif body_type == "IL":
-            transition.setanyText("\tST\t%s"%name)
+            transition.settext(":= ;")
     setattr(cls, "addtransition", addtransition)
     
     def gettransition(self, name):