hughjack
(Thanks for all the hard work, OpenPLC is great)
I may be wrong but, the behaviour of the REPEAT instruction seems to be incorrect. Specifically, the logical comparison (i.e. k > 10) after the UNTIL keyword is considered true, even when the result of the comparison is false. If it was working correctly, I would expect the value of k to be 11.
Screenshot 2024-11-18 at 11.21.06 AM.png
Reply 0 0
thiagoralves
Thanks for bringing that up. Indeed this is a bug that has been fixed in newer versions of MatIEC. To update MatIEC on our end we need to test on a variety of platforms to make sure the changes are not breaking anything. Once those tests are complete this bug will be fixed on OpenPLC as well.
Reply 0 0
hughjack
Thanks!
Reply 0 0
thiagoralves
I've updated the MatIEC bundled with OpenPLC Editor and Runtime. You might want to run your code again to see if it works correctly now.
Reply 0 0
Write a reply...
Reply