Ignoring ST-objects
It is possible to ignore elements declared within an ST-object when the application is validated.
(* 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 { 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). |
{ 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 .