spjosef

Hello everybody,

my name is Josef. I am working in the automation-industry in electrical and software engineering and I am also a part-time lecturer. I stumbled over the OpenPLC-webpage a few weeks ago, when I was searching for an open-source program to teach PLC-programming. In recent years I was searching for that kind of program, so now I am glad I finally have found this site.

I have used OpenPLC in my classroom for two days. We were only working with the OpenPLC-Editor and only in simulation. The programming-languages we used are LD, FBD and ST. My students and I discovered a few bugs and when I wrote to Thiago, he told me to post those on the forum - so now here we go ;-)

Additionally, I also got some ideas for improvements, which I will mention below. Maybe some of them are easy and quick to implement.

Before I start I wanted to say, that I really love the idea of OpenPLC and I know that Thiago and the programmers providing the software are working in private companies and don´t have time to fix everything right away. Maybe some things mentioned below aren´t even bugs, but are intended to function that way.
Anyways - In terms of improving the program, let’s start with the bugs:

  • The color of the „current“-lines is different in LD and FBD. As the lines in LD are green, some of them in FBD are blue. This was very confusing for the students.
    1.png  2.png 

  • Forcing values is different for LD, FBD and ST:
    • LD: You can right click on the variable and then choose force true/false. Or you can klick on the variable in the debugger and choose “toggle value”.
    • FBD: You can also right click on the variable, but not choose force true/false. But you can choose “Force value”. This opens a dialogue, which is similar to the one in LD (when using the debugger-method), but its behaviour is different:
      • FBD: If you want to set the value to true, you have to push the “toggle value”-button and klick ok. If you want to set it to false, you first have to push the “toggle value”-button and the to push it again and then to klick ok.
      • LD: If you want to set the value to true (in debugger), you have to push the “toggle value”-button and klick ok. If you want to set it to false, the button seems to be already pressed and you have to release it and klick ok.
    • ST: The only possibility to force values is to use the debugger

  • Ladder Diagram - Bit looks like it is reset, but it is set:
    When you use the “set”-function but the input to a coil is not true anymore, it seems to look like the state of the bit is reset, as it has lost its color. In my opinion in the example below, the “Ausgang”-Coil should be green.
    3.png 
  • LD/FBD: It is possible to draw lines trough/over elements. This is not good in a few scenarios.
    4.png
    5.png      5.png 
    7.png 

  • Same behaviour, but a bit different: It is possible to place elements on top of other elements. In the example below there is a timer placed on top of a contact.
    8.png 

  • LD/FBD: It is possible to connect the output of Elements to their own input. And if you klick on compile it seems, that the OpenPLC-Editor gets stuck in some kind of permanent loop, as you cannot klick compile anymore, even after removing those elements.
    9.png 

  • You can use some kind of mixed LD and FUB in ladder-diagram-editor
    10.png 

  • If you have a lot of programs and the names are a bit longer, the plus-symbol is covered with the names
    11.png 

  • Everytime you start the simulation, there is no response of the editor for some time
    12.png 

  • After Uploading to the Arduino is done, there should be a “close”-button
    13.png 

  • I know, that the online-monitoring feature is not implemented yet (through the forum). But if you upload code to the Arduino and try to monitor it, it seems, that the feature is already implemented, but not working properly, as it shows values and colors in the PLC-Code. I suggest implementing a warning, when pressing the glasses-button.
  • ST: It is not possible to add a comment by // but only by (**)

  • German translation: The German translation is not very good and in some cases it is wrong and very confusing. Sometimes I had to switch to English, to look up, what the word or function actually means.
    I would love to help translating the program. Is it possible to export e.g. a translation-table or something similar?

 

Now let’s get to some improvements I would suggest:

OpenPLC-Editor improvements:

  • If you are editing in LD or FBD, in most cases you are adding more than one element to your “code”. If you want to place elements, you have to click on the top-bar, choose e.g. “new contact” and then click in the editor. For the next contact you have to go to the top bar and choose “new contact” again and click in the editor again, and so on. It would be a better workflow, if you could click on “new contact” one time and not before you have to choose another element you are able to place coils.

  • In most cases the variables you add to your variable-definition are BOOL, as those are typical inputs and outputs of a PLC. That´s why it is inconvenient, that the default variable-type is DINT, when adding a new variable. I suggest making BOOL the default-type.

  • When starting the simulation, an extra tab opens, that looks nearly exactly the same like the editing-sheet. So sometimes you try to edit in the “watch-window” and wonder why it isn´t working, before you realise that this is the wrong window. I think it could be inhibited, if the variables-table wouldn´t be displayed in the watch-window.

  • It is not possible to rename functionblocks in the variables-table, but only by clicking on them. It would be better if you could also rename them also in the variables-table.

  • After adding variables to the debugger, it is not possible switch their position. E.g. if you added S1, S3, S2 you can´t change the positions to S1, S2, S3. It would be a good, if one could rearrange those.

  • There is already a trace available in the debugger, but the usability is not very good. Is it possible to add an extra trace-functionality, with a bigger window? It would also be better if you could define, which variables you want to see and display them above each other. (I am thinking about a trace-function similar to TIA-Portal or B&R Automation-Studio)

  • In ST it is only possible to watch and force variables via the debugger. It would be an improvement, if one could e.g. click on those variables, to change their value.

  • Some of my students had a problem, opening a project. They didn´t know, if they where in the correct folder structure. In the beginning it also took some time for me, to find out, which folder I had to choose, when reopening a project. I would suggest placing some kind of file in the project-folder, which you must choose, when opening a project.

General improvements:

  • Some of my students wanted to know, if there is a possibility, to get information about updates of the program. As there is no function for that in the software, I think it would be great if you had some kind of RSS-feed or email newsletter.

  • It would also be great if there were some kind of changelog.

  • There is no system or anything like that, where you can report bugs (or things you may think could be a bug). If you had a software like e.g. Redmine people could report bugs and the community and developers could evaluate them. You could also reject reported bugs and link them to a wiki-article, if it is due to lack of misinformation.

  • Speaking of the wiki… I think a big problem of OpenPLC is the missing documentation. When I told my students about OpenPLC and that we will use it in the classroom, some of them downloaded the program at home and tried to work with it. Most of them got disappointed at some point, because they couldn’t find out how some of the stuff works. When I started with the OpenPLC-Software I also had to search the forum a lot for every bit of information. I think a lot of information and context is already here, but it is hidden in the depths of the forum 😉
    I would suggest, setting up a wiki, where everybody can provide information. I would love to contribute some information, as I already had to write some manuals (in German) for my students.

Greetings Josef
Reply 1 0
Reply