Getting Started
Before opening CODESYS, flash the board with the CODESYS runtime using the neXo Firmware Flasher — the runtime must already be running on the board.
1. Install the device description
Section titled “1. Install the device description”CODESYS identifies the board through its device description file (.devdesc.xml).
- Download
CODESYS_Control_Pico2.devdesc.xml— [link da inserire]. - In CODESYS: Tools → Device Repository → Install…
- Select the downloaded
.devdesc.xmlfile and confirm.
The device then appears in CODESYS Control devices as:
| Name | CODESYS Control Pico2 |
| Vendor | nexo S.r.l. |
| Device ID | 167e 2008 |
2. Create a project and add the device
Section titled “2. Create a project and add the device”- File → New Project… → Standard project.
- As the device, pick CODESYS Control Pico2.
- Under the device node, the Peripherals module (I/O, analog inputs, LED, temperature) is added automatically — see IO Mapping.
3. Connect and log in
Section titled “3. Connect and log in”- Connect the board via USB-C (or Ethernet, if wired to your network — da confermare interfaccia usata per il gateway CODESYS).
- In the device editor’s Communication Settings, scan for the device and select it.
- Login and download your application.
Runtime limits
Section titled “Runtime limits”The CODESYS runtime on Raspberry Pi Pico 2 has the following fixed limits — plan your application accordingly:
| Setting | Value |
|---|---|
| Max IEC tasks | 10 (max 10 interval, 10 event, 1 free-wheeling) |
| Max task priority | 31 |
| Default cycle time | 100 ms |
| Code + constants (flash) | 1 MB |
| Retain memory | 1000 bytes |
| Online change | Not supported — full download only |
| Max applications | 1 (Application) |
| Breakpoints / force / write variables | Supported |
Next: IO Mapping and ST Examples.