Fix wrong ST code generation in case of several coils connected to each other.
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 10 Aug 2018 15:58:40 +0300
changeset 2277 068ccc02f5f2
parent 2276 ba0fc3e73ce2
child 2278 a3ac46366b86
Fix wrong ST code generation in case of several coils connected to each other.


For example,
|---|Var0|----(Var1)--(Var2)---|

Closes #32
PLCGenerator.py
--- a/PLCGenerator.py	Thu Aug 09 14:00:14 2018 +0300
+++ b/PLCGenerator.py	Fri Aug 10 15:58:40 2018 +0300
@@ -1346,7 +1346,7 @@
                 else:
                     paths.append(variable)
             elif isinstance(next, CoilClass):
-                paths.append(str(self.GeneratePaths(next.connectionPointIn.getconnections(), body, order)))
+                paths.append(self.GeneratePaths(next.connectionPointIn.getconnections(), body, order))
         return paths
 
     def ComputePaths(self, paths, first=False):