nikucolor
Hello everyone, I have a problem with translating a program from v3 to v4. I simply can't figure out how to do it. What is being executed in the program? It's a DS18b20 sensor that executes an output at certain temperature thresholds that I modify. Ok, the program works very well and I control it with SCADA. Can you help me translate it to v4? I'll put up a video, tks
Reply 0 0
PeBi
What does your solution look like in V4 so far?
 
I think FDB is the better solution for this logic.
Reply 0 0
nikucolor
It might be better with FBD, but I'm a beginner, so to speak in popular terms, I opened my eyes with openplc editor v3. I found it extremely accessible and intuitive and I simply "fell in love" with it. I only tried it in LADDER. So, I don't know how to make the connections between the blocks. I guessed something but I get an error. a video soap
Reply 0 0
PeBi
I'm also a little confused about LD logic.
That's why I think FDB logic would be much simpler.
To connect blocks in FDB, simply drag the corresponding connections with the mouse in the logic.
 
For example, like this ... etc.
Reply 0 0
thiagoralves
Although you set the language to LD on your v3 project, what you are actually using is FBD. That's because LD on v3 does not enforce any LD programming, so unexperienced users can end up using it as plain FBD with free drag and drop. I can see that there aren't any ladder rungs in your v3 project, which means that you essentially used FBD in your LD POU. So @PeBi is correct, for v4 you should have it done in FBD instead of LD.
Reply 1 0
nikucolor
I did it and it works. But I notice that in debug mode it doesn't display any value. Is that how it is in FBD or did I do something wrong?
Reply 0 0
thiagoralves
No, that’s a limitation of the v4 debugger for now. We will bring the live values in a future release. Meanwhile you can add the variables you want to see to the debugger panel on the bottom by clicking at the bug icon in front of the variable at the variables table.
Reply 0 0
Reply