Validating ST-code

Validation is very helpful to check the ST-code in the current ST-object:

Open the context menu of the ST-editor and select Validate.
If problems are found in the ST-code, warnings are reported in the Problems view. Double-click a warning in order to navigate to the appropriate ST-code.

At present, the ST-object is validated regarding the following:

  • Are there unused variables and function block instances?

  • Are return values of functions not assigned?

Moreover, a static code analysis is executed – see "Validating an application".