Fix wrong ST code generation in case of several coils connected to each other.
For example,
|---|Var0|----(Var1)--(Var2)---|
Closes #32
--- 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):