This is the second episode of Weidmüller’s M4000 CPU article, this time on the subject of installing Codesys.
Let’s get started.
Reference Link
Licenses
This is an Add-ON license for weidmueller M4000.
This is a Codesys Packages license for weidmueller M4000.
Downlaod Codesys Packages
Download the Codesys Package for the M4000 Controller at the following Link.
https://eshop.weidmueller.com/en/uc20-m4000/p/2839160000
Codesys Version
This is my Codesys Version.
Install
Install the weidmueller M4000 Target in Codesys.
Open Tools>CODESYS Installer.
Click Install File(s).
Select the Package File you have just downloaded.
Agree to the licence and proceed with Continue.
Wait a while…
Done!
CODESYS Control SL APP is now installed on the M4000 Web Server!
New Project
Create a new project in Codesys and select UC20-M4000 from the Device selection list.
Codesys project for UC20-M4000.
Scan Network
Scan Network to find the M4000 Controller on Ethernet.
Done!M4000 Controller found.
Configure Password
The User and Password need to be set up in the initial Codesys configuration.
Register for User Name and Password.
Done!
Download Missing Library
After installing a new Target System, errors often occur due to missing libraries: open Library Manager>Download Missing Libraries.
Download Library.
Create Program
Set up a simple programme as shown in the diagram below.
Download
Click on Login to download the project to the CPU.
Result
Done!The Codesys programme is running successfully.