CODESYS on Linux
Home Project for Hacks
blog
(Blog Post)
Note: The content moved to this project Get CODESYS SP13 or higher Use Development Version of Wine Get winetricks Install Prerequisits Switch to Win7 Install CODESYS Run the setup Ignore errors for Visual C++ Runtimes Don't install Codemeter Wait for Space Computation Use Custom Setup Add Registry Key Start CODESYS Linux RTE online Don't install SVN Plugin With the release of SP13 it is now finally possible to run CODESYS on Wine. The whole procedure is not very straight forward, but still easily possible. Get CODESYS SP13 or higher You can download CODESYS from the CODESYS store (use 32bit version). You need an account for that, before you can download it, but all is for free. Use Development Version of Wine At the time of writing this, I needed to install the development version of wine. sudo apt-get install wine64-development cabextract winbind Get winetricks You will need to download winetricks, which helps you in installing Dot Net, as well as several Visual C++ Runtimes: wget -c https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks chmod 755 winetricks Install Prerequisits Like already mentioned above, you should install some packages using winetricks. I recommend ot use an own wine directory for that: WINEPREFIX=~/.wine.codesys ./winetricks vcrun2005 vcrun2008 vcrun2013 vcrun2015 dotnet46 Switch to Win7 The emulated windows has to be configured to Windows 7. You can do so by using winecfg: WINEPREFIX=~/.wine.codesys winecfg-development Install CODESYS Run the setup WINEPREFIX=~/.wine.codesys wine-development ~/Downloads/CODESYS\ 3.5.13.0.exe Ignore errors for Visual C++ Runtimes Just click through the first part of the setup, and always ignore errors, if s.th. could not be installed. Don't install Codemeter Do not cancel the installer, just deselect every component of the Codemeter Setup, as this will fail. Wait for Space Computation This is a dialog, which takes a long time. Just wait, it will finish. Use Custom Setup In the custom setup you should deselect all, except CODESYS itself (no OPC DA, no CODESYS Control Services, ...) Codesys Gateway works on 32bit and 64bit edition. Add Registry Key After the installation finished successfully, you need to add a registry key. Without this, I got an error of wine, saying "The specified user does not have a valid profile". WINEPREFIX=~/.wine.codesys wine-development reg add "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\S-1-5-21-0-0-0-1000" Start CODESYS CODESYS should now be ready to start... WINEPREFIX=~/.wine.codesys wine-development ~/.wine.codesys/dosdevices/c\:/Program\ Files\ \(x86\)/CODESYS\ 3.5.13.0/CODESYS/Common/CODESYS.exe Linux RTE online You can install the Linux RTE and login with your Codesys IDE to this PLC. Don't install SVN Plugin At the moment do not install the SVN Plugin into codesys, it will break your installation.
Last updated: 2019-11-30
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.
You can use the 'Search comments?' checkbox to include comments in the search results.
You can use the 'Search history?' checkbox to include previous revisions of items in the search results.