Yukkotete
Hello, I'm trying to compile my program but the log is showing me this error:

invalid test expresision defined for ST 'IF' statement.


Almost all the lines in the main program appear with this error.
I create the program using ladder logic language so is not a sintax error.
Any ideas what is going on here?
 
Thanks
Reply 0 0
thiagoralves
It might be a variable declaration that is wrong. It is easier to find the problem if I have the code
Reply 0 0
Yukkotete
https://drive.google.com/file/d/0B7LEb0pK3C5EYzRDMWFQUVlEQjg/view?usp=sharing

Here you have.
Reply 0 0
thiagoralves
The ladder logic editor shouldn't generate this type of code. Did you modify the code after it was generated? It would be better to have the .XML project file instead of the final .st code
Reply 0 0
Yukkotete
https://drive.google.com/file/d/0B7LEb0pK3C5EaldYU0hlMExUa0E/view?usp=sharing

There is the .XML proyect. I hope that variables in spanish wont be a problem for you.
Reply 0 0
thiagoralves
Your compiling error is related to this open issue on Beremiz:  https://bitbucket.org/skvorl/beremiz/issues/32/invalid-st-code-generation

PLCopen Editor doesn't work well with coils in series, and your code is full of them. In fact, I don't understand exactly the purpose of putting coils in series. If you want to activate multiple items, you should put the coils in parallel.
Reply 0 0
Yukkotete
Okey so i am going to put them in parallel, thank you.
Reply 0 0
Reply