To operate a Wago PLC with Calaos, it must first be loaded with the Calaos program. There are two ways to program a PLC with Calaos:
In any case, it’s necessary to configure the PLC’s IP address beforehand. It’s advisable to refer to Wago’s documentation for setting up a static IP address. By default, a PLC is set to DHCP. To switch to a static IP address, the Wago Ethernet Settings software should be used. This software also allows for searching the PLC on the network.
For PLCs equipped with DIP Switches on the front for IP setting, follow these steps:
To verify if the PLC is correctly configured on the network, simply access the PLC’s web page via http://192.168.1.XXX. The web page should open.
First, download the Calaos code from Github. The archive contains all the code for all supported PLCs and the used libraries. Just extract the zip somewhere.
Version | Notes |
---|---|
1.7 - 2.2 | Old version, do not use |
2.3 | Stable version. Only works if no DALI Master 750-647 terminal is present |
3.0 | Stable version for use only with a DALI Master 750-647 terminal |
The simplest solution is to use Calaos Installer. Just open the Flash PLC with custom firmware tool in the Wago menu. Then enter the IP of the PLC you wish to install. Calaos Installer will then ask you to select 2 files (use CTRL+select), a .PRG
file and a .CHK
file. Make sure to choose the correct version corresponding to your PLC and the desired version.
Programming the PLC can take several minutes, be patient even if you don’t see any progress.
Codesys is the PLC development tool. This tutorial uses version 2.3.9.xx. It’s recommended to use the full version of Codesys, as the demo version does not allow the code to remain in the PLC after a restart.
It’s advised to use Codesys in English, as the French version has some translations that are hard to understand. To change the language, go to Project Menu, Options, Working Environment, and choose English.
Start by running Codesys and then open the project corresponding to your PLC (e.g., wago_881.pro for a 750-881). Choose the latest version that can be found in the folder. E.g., Wago_3.0 for version 3.0 of the program.
Once the project is open, there should be no errors. An information message might pop up indicating that libraries have been modified, just validate it.
To recompile the project, go to the Project menu then Rebuild All.
If everything goes well, the console at the bottom should show 0 Errors.
Next, go to Online, Communication parameters.
The following window will open:
Change the IP address in this window by double-clicking on it, then click OK.
To load the PLC, go to Online, Login. The project will be compiled automatically if necessary, and the connection with the PLC will be established. If the connection works, Codesys will ask if you want to load the new program. Of course, respond Yes.
Loading can take some time (several minutes). Once finished, Codesys will switch to debuggermode, but the program is not executed. You can see whether the program is running at the bottom right.
Before executing the program, it must be written to non-volatile memory. Otherwise, everything will disappear after the next PLC reboot. To do this, once in Online mode, go to the Online menu, Create boot project.
This process will take some time, let Codesys complete its task.
For Calaos Installer to work with the PLC, the PLC’s LED must be steady orange. Do not connect to the PLC with Calaos Installer at the same time as calaos_server
. It’s essential to disconnect calaos_server
from the network in this case.
In Calaos Installer:
connected (2.2)
with the PLC’s version.For switch detection: