PLCopen.pro: Test application for PLCopen function blocks

This application helps the user to familiarise himself with the response of function blocks according to the PLCopen standards Part1 and Part4. The application is designed to calculate all instances of these function blocks cyclically. There are no dependencies between function blocks. The user is provided with a command interface in the form of created visualisations. One visualisation was created for each function block type.

The concept in this example shows that each axis or axis group is always assigned the same function block instance. This helps to explain the example more easily. The same number of function blocks is created as the number of axes or axis groups to be commanded.

Assigning axis or axis group references to function blocks
Assigning axis or axis group references to function blocks

In order to provide proof that the functionality of function blocks is executed properly even when axes and axis groups are replaced, replacement can be authorised by 2 global variables (gP1AxisRefChgDisable, gP4AxesGrpRefChgDisable). However, this operating mode is conceived for demonstration purposes.

The example contains a single task which invokes the MAIN() main program.