lc625
Before I ask my question I´d like to introduce myself because it´s my first post here. I come over from Codesys. I finished several projects succesfully with a raspberry and I2C Modules. It was a lucky coincidence that I found the openPLC project. I played a bit with the editor an the raspberry runtime. Pretty cool!!
After that I thought it would be nice to have an windows runtime (a rasbpi is not allways with you). This attempt causes me headache: Like some others I´m not able to get it running. I read the form an tried the following things: Nomal installation, installations as adminitrator, running rebase, installing cygwin over the runtime folder, installing the runtime manually via cygwin. All without success. I know that it´impossible to give me the golden answer without further information, logs etc. But, does anyone have an idea of an systematic aproach? It would avoid me posting never ending log files.
Quote 0 0
thiagoralves
This is so frustrating... I keep reading feedback from users not being able to install the runtime on windows and I’ve never been able to reproduce the problems they are having. Right now I have no idea what is causing those issues. Some report that they are having permission denied errors, others have problems downloading content from Cygwin servers, but I don’t know exactly what is going on. Usually, your best shot is to just remove everything and try the manual install using Cygwin. Just install Cygwin and make sure that the git package is selected to be installed. Then open Cygwin terminal and type:
git clone https://github.com/thiagoralves/OpenPLC_v3.git
cd OpenPLC_v3
./install.sh win

At least, if you have issues during the installation process, this method will give you a complete feedback of what is going on.
Quote 0 0
lc625
You should not be frustrated! You are doing a great job. Your openPLC offers the possibility to realise applications with a huge ammount of different hardware. So everyone can built it´s own PLC with stuff lying around.  Due to that I´m shure that there must be some issues. 
In my opinion a PC isn´t the best choice of hardware building a PLC, but it is very useful to check parts of your project while you don´t want to carry the designated PLC hadrware with you (i.e. holiday, in a train ...). That´s why I´m interested in the windows runtime.

I tried the way of installation you suggested but...., well I got a new error:

 "fatal: unable to access 'https://github.com/thiagoralves/OpenPLC_v3.git/': error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none"

This weekend I´ll give it again a trial after deinstallation and "cleaning windows".

It´s off topic, but did you thought about opening a thread where the comunity could post their homemade function blocks? You could add them to the library if they are worth it. Myself I created a project "my_function_blocks" including only the blocks I "designed" or took from the Oscat lib. Not very much until now, but the amount should increase. With cpoy / paste I have the opportunity to use my FB´s in other projects.
Thank you for your immediate help! I´ll let you know if I was able to solve the problem.
Quote 0 0
thiagoralves
About your Cygwin issue, try this:  https://stackoverflow.com/questions/3160909/how-do-i-deal-with-certificates-using-curl-while-trying-to-access-an-https-url

maybe all you have to do is install ca-certificates using apt-cyg.

About the custom blocks library, I love the idea. In fact, I wanted to do exactly that some time ago, in the same format of the Arduino Playground. However, instead of just having copy-paste blocks from users, I want to add a new feature on the editor that will allow you to export/import custom user blocks. This will make it easier to transfer these blocks from one program to another and also to share it with other users. Right now, just copying the contents of a function block is not enough as you must manually include the variables for the block. Having an import/export feature will make it more user friendly
Quote 0 0
Ayo_Rotibi
I have had similar problems too.  Tried to install on 4 different platforms: Windows, Linux (Ubuntu), Linux on VM and Raspberry Pi. It works on the RPi as I get the webserver. However, the Windows, Linux, and VM installations got the same error result - host unreachable. i have run and re-run without success.  I have not tried the git option. i will try later this evening.
Quote 0 0
Si Thu Aung
​"Cygwin is not installed. Please restart OpenPLC Installer." Press any key to continue . . .
Quote 0 0
thiagoralves
As the message says, restart the installer and make sure the Cygwin installer goes all the way through
Quote 0 0
lc625
After several unsuccessfull attempts to install the Windows runtime I´m really happy that I got it running now. Thanks for all the hints in this forum. Perhaps my way might help others to succeed also, so I will post it down here: It´s a kind of synthesis of different tips from the admin Mr. Ralves.
First I cleaned windows as good as possible from all the former OpenPLC installation attempts, using the uninstaller, manual deletion of not deinstalled rests and running ccleaner several times. By the way it wasn´t 100% perfect. The installer from the OpenPLC homepage always uses the directory I choose for the very first installation. This installer does not work in my case, neither the new one.
After that I installed Cygwin manually. Download the setup file from https://cygwin.com/install.html an run it. I selected "best" as option. After complet installation on C:\ I ran setup again to install "git".
As described by Mr Ralves, after starting Cygwin I executed the following lines:
git clone https:// github.com/thiagoralves/OpenPLC_v3.git 
cd OpenPLC_v3
./install.sh win
To start the runtime:
open Cygwin
Prompt => cd OpenPLC_v3
Prompt => ./ start_openplc.sh
Browser => http://localhost:8080
User => openplc
Password => openplc
Stop Runtime => Ctrl C

It might not be the smartest way but however I´m glad to be able to make more experience with OpenPLC now,
Quote 0 0
lc625
Dear Mr. Alves, I have to apologise for spelling your name wrong. Never let the autocorrection do its job without having x-checked. Sorry for that.
Quote 0 0
thiagoralves
lc625, don't worry about that =)

Installing the runtime manually over cygwin is usually the best way to get it working. However, I recently refactored the Windows installer, so it should work for everyone now. You can give it another try if you want.
Quote 0 0