Andrew S
Hello. I'm working on a project that will involve devices in the field that won't be easily accessible. Since updating them will be a challenge I would like to use the latest stable OS if possible. I know that the existing installation docs for OpenPLC require Raspbian Jessie but I was wondering if there's any news about supporting Stretch?

Thank you.
Reply 0 0
thiagoralves
It supports stretch out of the box
Reply 0 0
Andrew S
Fantastic. Thank you!
Reply 0 0
IdeasFixer
I've just downloaded and installed Jessie and was wondering exactly the same about Stretch.  Could you @thiagoralves update the installation instruction to Stretch, unless there are disadvantages compared to Jessie.
Thank you for your work on the project. 
Reply 0 0
thiagoralves
The instructions are the same. It should work on any version of Raspbian (Debian) from Jessie up.
Reply 0 0
sergei
I  tested OpenplcV3 on my old raspberry pi model B and the last rasbian (june 2018), and i get this :

- with old model selected : dont work
-with raspberry pi selected : the circuit work .... but the pi freeze ... and to shut it down i must do the bad way : unplugging it.

i think that maybe the old PI and the last rasbian are in cause ?
Reply 0 0
thiagoralves
What do you mean by "It didnt work with old model selected"? Did it start and freeze, or did it throw an error, or what? I don't have an old Raspberry Pi to test it with. The driver for the old Pi was written by forum users, so it might be possible that the problem is just the driver that was not properly written. If you can give me more details about the problem I can try to sort it out with you.
Reply 0 0
sergei
I mean ,in hardware , i can select raspberry pi new or old model.

with "new raspberry selected", i run OpenplcV3.
then when i click on "start PLC", the PI is blocked ... i can do anything..
no keyboard, no mouse and the network shutdown...
but at this point, the circuit (hello world) work !!!
and this directly on the pi or in ssh.

to shutdown or restart the pi : the hard way : disconnect the power supply.

with "old model" selected , no problems with the PI, but the circuit never work.

This week-end, i will order a new model because my PI is too old ,and mostly
very very slow with the last rasbian.(1 mn to run chromium, 5 mn to compile a program...)

... and thanks for the help these last days.
Reply 0 0
thiagoralves
It is very likely that the old model driver is working, but the mapping is different because the old Pi has less pins. So you need to arrange your circuit to use the right pins for your program. Here is the mapping that is on the old model driver:

Digital Inputs (%IX0.0 onward): 7, 11, 13, 15, 19, 21, 23
Digital Outputs (%QX0.0 onward): 16, 18,  22, 24, 26

(This is according to the WiringPi table found here: http://wiringpi.com/pins/)
The pin number follows the Pi header numbering, i.e. pin 1 is 3.3v, pin 2 is 5V, etc...
Reply 0 0
sergei
thanks, now it works, but only with "sudo".
and in ssh when i click on "start PLC" the status dont change : always "stopped" but the circuit work...

Why we dont use the pin 12 (GPIO1) ?
Reply 0 0
thiagoralves
sergei wrote:

Why we dont use the pin 12 (GPIO1) ?


Honestly I don't know. A user on this forum figured out that the old Pi was hanging because OpenPLC was trying to use pins that are not available on the old Pi header. So he modified the Pi driver to use less pins, and apparently, according to him those are the only pins that work. So basically the old Pi driver is a pin-reduced version of the original Pi driver.

About the status, it should change if you refresh the page. On the new Pi it usually refreshes automatically, but the old Pi might be slowing things down and you may have to manually refresh it.
Reply 0 0
Reply