Pigeon and the CODESYS - Getting started

1. Introduction

CODESYS is a software platform for industrial automation technology. The platform is based on the CODESYS Development System, an IEC 61131-3 programming tool, supporting five PLC programming languages (Ladder Diagram, Structured Text, Instruction List, Function Block Diagram and Sequential Function Chart). This page aims at presenting first steps with CODESYS and Pigeon computers.

2. Installing CODESYS on Windows

You can download CODESYS Development System at Codesys Store. You need to register to download, but the CODESYS Development System is free. Pigeon computers are supported by CODESYS Development System since version 3.5.11.0.

codesys_001

After download, run the installer accepting all defaults.

3. Installing the packages

First, download CODESYS Control for Raspberry Pi SL from Codesys Store. Pigeon computers are supported by CODESYS Control for Raspberry Pi SL since version 3.5.11.0.

codesys_002

Next download CODESYS Control for Pigeon. CODESYS Control for Pigeon contains support for the Pigeon computers family (RB100, RB300, RB100-CM3, RB300-CM3). You can download CODESYS Control for Pigeon from our server CODESYS_PIGEON_1.0.0.0.package or CODESYS Store

pigeon_control_codesys

Then open CODESYS Development System. Select Tools → Package Manager

codesys_01

click Install button and select CODESYS Control for Raspberry Pi package.

codesys_03

then accept the license agreement and all defaults.

Next, install CODESYS Control for Pigeon package as above. CODESYS Control for Pigeon package is free.

codesys_04

Restart the CODESYS Development System.

4. Installing CODESYS Runtime on the Pigeon

First, you have to enable SSH server on Pigeon. To do this in Pigeon console run raspi-config, select Interfacing Options → SSH then select Yes. Reboot the Pigeon. In CODESYS Development System select Tools then Update Raspberry Pi, enter username and password (default: pi/raspberry).

codesys_05

Enter the IP address of your Pigeon (you can check it using the ifconfig command in the console) and click Install. Reboot the Pigeon.

codesys_06

That's all. We are ready to create and load the first project.

5. First project

In CODESYS Development System, select File then New Project… and in the Projects category choose Pigeon RB100 project or Pigeon RB300 project depending on devices you are using.

codesys_07

The new project will be created. Below, you can see screenshots of the RB300 template project.

codesys_11 codesys_12

6. Example projects

The CODESYS Control for Pigeon package also contains example projects for RB100 and RB300. The default directory for these projects is C:\Users[User Name]\CODESYS Control for Pigeon\1.0.0.0\Examples. To open project, select File, then Open Project...

codesys_13

The following images show print screenshots of the example projects.

codesys_09 codesys_08

7. Download the project to the Pigeon

In CODESYS Development System, click on Device

codesys_14

Click Scan Network. Pigeon should be detected.

codesys_15

Select it and click OK.

codesys_16

You can also put the IP address of Pigeon directly.

codesys_17

Then click Online → Login and next Debug → Start.

codesys_18

You can open a web browser and enter the IP address of your Pigeon followed by port 8080, for example, 192.168.1.17:8080. You will then see the following page.

codesys_10

8. Update to the newest version

If your compiler version is newer than the current compiler version in the project, when opening the example project, select options similar to the ones below.

code_sys_up1

Then update the device version of the project to the newest.

code_sys_up2 code_sys_up3