MadHatter
Hello everyone,

i am trying to get PLCopen Editor to work.
It is working fine, except for the part where i would like to compile/run the program.
On a youtube video  https://www.youtube.com/watch?v=m-p6560jMbk i saw the button.
So i know it is missing. 

i have tried reinstalling, however it is the same every time, so i don't think it is an installing error.
I have a windows 64 bit system. If i need to supply more information just let me know.

Kind Regards,

MadHatter
Reply 0 0
MadHatter
I just found out it are different programs. 
I just read that you can test your program with OpenPLC runtime.

However OpenPLC runtime doesn't work. 
Rebase has no positive effect on the matter.

I can't read the error messages, because the windows close to fast. (with both runtime and rebase)
What am i doing wrong? 

Kind Regards,

MadHatter
Reply 0 0
thiagoralves
As you pointed out, that video is about Beremiz, which is a different project. Usually when OpenPLC fails to load is due to some other service running on port 8080. To check if there is anything else running on port 8080, do this:

1. Open cmd as administrator (start menu -> type "cmd" -> right click at "command prompt" -> run as administrator)

2. Inside command prompt type:

netstat -ano | findstr 8080


3. If you don't get anything back it means that port 8080 is available, which is good. If you get something back, it should say what is using port 8080:

TCP       0.0.0.0:8080          0.0.0.0                 LISTENING                 4704


4. This means that the process whose PID is 4704 is using port 8080 and needs to be closed. To do that, type:

taskkill /F /pid  4704


5. After closing the process on port 8080 try relaunching OpenPLC Runtime. It should work now.


If your port 8080 is available and your runtime is still not loading, I need to see the error messages to know what the problem is. Check this thread (https://openplc.discussion.community/post/openplc-runtime-doesnt-start-on-windows-7-9784367) to know how to manually start OpenPLC Runtime. Then you will be able to see all the messages. Post the messages here and I'll try to help you.
Reply 0 0
MadHatter
I didn't get anything back from your advice, so port 8080 is available.

Using the information on that thread i got to the same point as "Schnebe" where "wget is not installed, using lynx as fallback"
error_installigOpenPLC.png 

I used cygwin to get to wget.exe 
I placed it into the bin folder inside the runtime folder.
However if i reïnstall, it deletes wget.exe

Thank you for the help already!
Reply 0 0
MadHatter
I think I am a little further with the problem.
I used the batch file from cygwin as it has acces to wget.
error_installigOpenPLC_2.png 
 As i see it, the problem is being not able to acces: "https://bootstrap.pypa.io/get-pip-py"
However i have no idea how to fix this.
Reply 0 0
MadHatter
I tried a clean install, which had a positive effect!
I still had the same wget.exe missing while using the shortcut tactic.
However when using cygwin the program actually installed. 
Ill put the full code under here just to be sure i didn't miss anything.
error_installigOpenPLC_3.png 
error_installigOpenPLC_4.png 
error_installigOpenPLC_5.png 
error_installigOpenPLC_6.png 
error_installigOpenPLC_7.png 
error_installigOpenPLC_8.png 
So Compilation finished succesfully!
However my problem now is the ImportError: No module named "serial.tools.list_ports"

Thank you for the help already!
Reply 0 0
thiagoralves
Your problem doesn’t seem to be related to wget, serial.tools or any other package. What happens is that when OpenPLC is installing, it downloads all the required packages over a secure connection. Apparently your computer is having trouble verifying the certificates for the secure connection, so none of the packages actually get installed. You can see on the logs that there are several error messages related to certificates. I don’t know exactly the reason for that, but I’ve seen these kind of problems when the date and time of your computer is set wrong, or when you have some restrictions or rules on your internet connection. If you manage to get your computer working properly with digital certificates, the installation will go smoothly. The installer will install all the required packages and the software will work as it should.
Reply 0 0
MadHatter
Thank you for the information.

I tried to install it on my personal computer. This time it worked.
I can now start OpenPLC runtime.

However then the application asks for credentials.
in the reference: "uploading your project to OpenPLC" there is this sentence:

Login with the credentials you set up after installing OpenPLC v3. If you're still on OpenPLC v2 you won't see this login screen, as OpenPLC v2 webserver is much more simple. Keep reading, v2 instructions are at the end.

I have installed OpenPLC_v3, but i don't know where to set up my credentials.

Already thank you for all the help!


Reply 0 0
thiagoralves
http://www.openplcproject.com/getting-started-windows

The default credentials are openplc (user) and openplc (passw)
Reply 0 0
MadHatter
Thank you very much for all the help!
Reply 0 0
Reply