kortenbach
Hi,
 
I saw that a lot of work was done on OpenPLC, so I decided to see the live debugging in action today using the blink example.
2 issues:
  • The upload tends to fail because the COM-port cannot be opened. Workaround: Unplug the ESP8266 and reconnect.
  • Live debugging won't start. See messages below.
OpenPLCBug.png
Reply 0 0
kortenbach
Sidenote:
It seems that I found another issue. I opened the blink example and tried to save it (again) to my working folder (overwriting the previous save of the blink example) and got this error:
[203128%2F9126641%2Fmceclip0]
 
So, it seems that overwriting a project doesn't work...
Reply 0 0
fg71
I believe if you use Save as you need to create empty folder to save your plc program, if you like to update your open plc program you use Save not Save as.
Reply 0 0
kortenbach
I believe if you use Save as you need to create empty folder to save your plc program, if you like to update your open plc program you use Save not Save as.
Hi fg,
Its a sidenote, not a deal breaker, I just wanted to report the bug. Save as should be able to overwrite the existing files.
Reply 0 0
fg71
I understand, but that is not the approach OpenPLC does it.
You could only create new project in empty folder, same approach if you use Save as.
 
If you use save you will update your open project.
Reply 0 0
kortenbach
In that case the folder should be emptied automatically. A runtime exception should not be the default behaviour.
Reply 0 0
thiagoralves
Unfortunately the esp8266 only works on the WiFi debugger. There is a bug on the serial stack that breaks the serial debugger. On the save as bug, thank you for reporting that. OpenPLC only saves on empty folders, so that’s why it is raising the error. But instead of an error like that, it should just bring up a message alerting the user
Reply 0 0
kortenbach
Unfortunately the esp8266 only works on the WiFi debugger. There is a bug on the serial stack that breaks the serial debugger. On the save as bug, thank you for reporting that. OpenPLC only saves on empty folders, so that’s why it is raising the error. But instead of an error like that, it should just bring up a message alerting the user
Thank you Thiagor! I will try the WiFi debugging instead. Maybe a warning (use WiFi debugging) could be added to prevent others from taking the wrong route...
Reply 0 0
kortenbach
P.S. adding the Arduino programming area into the Open plc editor was a brilliant move! OpenPLC could become the most interesting option for programming microcontrollers! Excellent work!
Reply 1 0
kortenbach
Okay, I got the blink example working on my ESP8266. To help others I have made an extensive report on how to get this working.. I've added it in the attachment of this post. Please let me know if anyone finds this helpfull.
You are free to use this Word file and extend / repost it as long as you mention a link to this post.
Reply 1 0
thiagoralves
Thanks for your contribution @kortenbach
Reply 0 0
kortenbach
Glad that I could help!
I am still working to improve the document. I will publish a new version soon...
Reply 0 0
Reply