Ignoring ST-objects

It is possible to ignore elements declared within an ST-object when the application is validated.

Syntax
(* syntax to ignore the entire contents of an ST-object *)
{ DoNotValidateThisFile ('') }
PROGRAM name1 | FUNCTION_BLOCK name2 | FUNCTION name3 | TYPE | INTERFACE name 4
...

Meaning

ignore the contents of the current ST-object when validating the application
The statement for ignoring the contents is provided as an enhancement to the →IEC-standard.

The statement { DoNotValidateThisFile ('') } must be inserted at the beginning of an ST-object and is valid for all elements within the ST-object (hence: →POUs, →data types and →interfaces).
As a consequence of this statement, you will not get any information that one or several elements of an ST-object are ignored when the application is validated.

Example for ignoring the entire contents of ST-object 'Test'
{ DoNotValidateThisFile ('') }
FUNCTION_BLOCK Control
...
END_FUNCTION_BLOCK

If you are using the ST-object within a library the pragma is transferred to the library element when the library is created. Hence, library elements containing the pragma { DoNotValidateThisFile ('') } are not validated when a project is cleaned .