PROFINET IO - Controller

The configuration of the PROFINET IO controller consists of the controller and the PROFINET IO devices (slaves) inserted below it. The devices are configured by the controller and exchange data with it.

CODESYS provides two different PROFINET IO controllers: A variant especially for Hilscher CIFX adapters and a variant that runs on any Ethernet adapter.

When inserting the Ethernet-based controller, two tasks are created implicitly that are required by the PROFINET IO communication stack.

For maximum I/O performance with minimum delay when reading/writing, I/O data can be updated in this task (→ insert own POU that updates I/Os in this task). No blocking or persisting operations should be executed in the I/O task, such as visualization or file access. If the task is blocked too long, then the watchdog cancels the connection for communicating with the slave (see Slave Configurator: Watchdog).

Notice

We recommend that you activate the Refresh I/Os in Stop option in the PLC settings. Otherwise the communication is canceled when the application stops at a breakpoint.

Note

With the scan functionality, you can easily ascertain the present hardware structure and transmit to the device tree.

See also