Keep up the good work Dr.Alizadeh! If anybody tried what was suggested in min 4:15, but couldn't get it to work.....here's the solution www.dropbox.com/s/k8t7ly5jmj2pf25/V5%28Flashing%20signal%29.project?dl=0
You get the error because you want to compare two different data types with each other: Time and INT (and CODESYS tries to convert the INT to TIME for comparison, and it can not!). Try doing this: if Timer.ET
thank you sir, of course t#... now it works i was trying to assign the ET. to another int variable. it should also be possible actually timers are little bit tricky how to manipulate variables, and reset them and so on. an instruction video would be helpful in structured text. thanks again
very good learning. keep doin these videos on codesys. you are my hero man 👍
+Reza Azer Thanks for your positive feedback! I will try my best to keep on preparing videos.
great, thank you!
Glad it was helpful!
Keep up the good work Dr.Alizadeh! If anybody tried what was suggested in min 4:15, but couldn't get it to work.....here's the solution www.dropbox.com/s/k8t7ly5jmj2pf25/V5%28Flashing%20signal%29.project?dl=0
Thanks
how do we set the Elapsed time(ET) in structured text, for example i try this ;
if Timer.ET
You get the error because you want to compare two different data types with each other: Time and INT (and CODESYS tries to convert the INT to TIME for comparison, and it can not!).
Try doing this: if Timer.ET
thank you sir, of course t#... now it works i was trying to assign the ET. to another int variable. it should also be possible actually timers are little bit tricky how to manipulate variables, and reset them and so on. an instruction video would be helpful in structured text. thanks again
Nice to hear that you have made it work. I may prepare a video tutorial on Data types in CODESYS, and how to convert between them. Stay tuned!