ELERIUS
Does anyone know how to fix this ST code? thank you
 
[203128%2F8361772%2Fmceclip0]
Reply 0 0
CloudHead84
[203128%2F8361824%2Fmceclip0]
 
you already did the variable declaration in the upper list in the program.

VAR, END_VAR and PROGRAM and END_PROGRAM already exist in the background when you create a new program/block,
so you dont need to do that.
Reply 0 0
ELERIUS
Hello, thank you very much for the answer, I did what you said and I get this error
[203128%2F8362077%2Fmceclip0]
Reply 0 0
thiagoralves
You're missing a ';' on your END_IF.
There could be other problems as well on your project that we can't see without the full project
Reply 0 0
Reply