Hans
Hi Thiago. 

I've watched a relatively large amount of your content. I've downloaded open plc editor and runtime on my laptop(Windows) . So my entire program is done amd addressed.  

And now I started running the runtime. And I'm like , oh okay , maybe this is wrong.  Did I have to do all this on the Raspberry pi 4. 

As in I can't compile a program and just upload it to the runtime ( with my laptop ) and the Pi 4  accesses it(Through downloading the runtime on the Pi4 as well.)

Kind Regards

HJ de Villiers 
Reply 0 0
thiagoralves
You don’t need the windows runtime to upload programs to the Raspberry Pi. Watch this video to learn more:  https://youtu.be/iC5s4CEiOB4
Reply 0 0
Hans
Watched it , so my solution is just getting the editor and runtime for Linux(Pi). 

Ok will try again. Need this to work. 


Thanks Thiago 
Reply 0 0
thiagoralves
You don't need to get the editor on Linux. As you can see from the video, I'm running the editor on the Windows side. It doesn't really matter where you run the editor, what matters is that you have the runtime running on your target platform.
Reply 0 0
Hans
Thank you Thiago for your patience 🙏. 

Okay so I'm installing it (Runtime)on the Pi 4. 

So your steps on the site are .

Install git.

Git  Openplc v
.rpi etc 

Download wiring pi 

Test wiring pi 

These next 2 steps get me. 

Neuron PLC - Download Unipian Neuron OS from Unipi. ( This is not on their list , it's like Node red , Evok etc ) Please clarify. 🙏 

And then the last step gpio load ic2 needs this Unipian to run?So that's probably why that comand doesnt work?

Apologies T I'm an newbie.

But if my project works I'm promoting Open plc projects in Unisa like mad.  


Reply 1 0
thiagoralves
Man, please read the documentation carefully. The last section is 

Platform Specific Differences

If you have a Raspberry Pi, you only need to follow the instructions for the Raspberry Pi section. Neuron PLC and UniPi sections are for Neuron and UniPi PLCs respectively, which I'm pretty sure is not your case.
Reply 0 0
Hans
I see , thank you. Understood. 
Reply 0 0
Hans
Hi Thiago !

Ok I have installed the runtime and gotten the IP adress and login on my PC. I run into a  compiling issue error invalid location in global location . You stated the initial condition should be nothing sonI changed that from zero,  I changed all my I/O names  to just PB and LAMP variants . I saw a guy wrote in a post from 2016 that he found his fault in the hello world example(I can't find that in documents or your youtube videos) . The simulator results are satisfactory. I just can't seem to find the compilation  issue that messes up the runtime . (Screenshot attached ) 

Can you please guide me. 

Once again , thank you. 

Kind Regards
Reply 0 0
thiagoralves
Hard to tell with just picture fragments, but it seems that PB6 is on an invalid location.
Reply 0 0
Hans
Ok T . 👍  I managed to get openplc to run my plc program. It was the small things.  Addressing. On the Raspberry pi one only has %IX0.0-0.7 and then 1.0-1.5.similar story with the outputs except there's 3 less eg only to %QX1.2. Any wrong move and you're toast. I started over thinking it and it is definately easier than I though earlier. I was freaking out as my project is almost due. 

Thanks for the patients. 
Reply 0 0
Hans
Hi Thiago my project is successful can I add you to my acknowledgements? 
Reply 0 0
thiagoralves
I’m glad it is working. I would be honored if you want to add me. Thanks
Reply 0 0
Hans
100% Thank you. 
Reply 0 0
Reply