Exclude DDS objects in case of too many blocks

Question
What is the cause for the DDS error message 'Maximum number of POUs (450) exceeded!' and how can it be eliminated?

Answer
When a DDS project is compiled indices are assigned to each block (POU). These blocks also contain all objects (e. g. function blocks) of the libraries integrated in the project; this consequently includes also those objects, that are not used in the program. The number of possible indices is limited to 450. If this number is exceeded, the error message will occur.

From DDS version 2.x it is possible to exclude objects from the compilation, which are not used in the program. Via the selection menu Project > Options > Compilation options a mask with a function button 'Exclude objects' opens. Here either all unused objects or single objects can be selected and excluded. If the project is compiled faultless, unused objects will be displayed in grey, used objects in black and excluded ones in green. The function 'Exclude unused' is only enabled if  the project is compiled faultless.  

Tip!
For the function of single blocks of the 'LenzeDrive.lib' as an alternative standard operators of the DDS can also be used.
Example. L_ABS, L_ANEG, L_AND, L_ADD

Thus, these blocks can be easily substituted and excluded.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/200510321/1/
Contact form