beckhoff TE1200 — 5.3 Command 'View Standard Metrics'

Commands | Command 'View Standard Metrics' Some rules cannot be checked using this command The following rules can only be checked using the Command 'Run static analysis' [ } 110] command, not using the “Check all objects” option. SA0004: Multiple write access on output [ } 21] SA0028: Overlapping memory areas [ } 33] SA0160: Recursive calls [ } 71] SA0175: Suspicious operation on string [ } 78] Please also note the Command 'Run static analysis' [ } 110] and the differences between the two commands, which are described in the following table. 5.3 Command 'View Standard Metrics' | Command 'View Standard Metrics' Symbol: Function:

The command starts the static metric code analysis for the currently active PLC project and represents the metrics for the programming blocks used in a table. Call: Build menu or context menu of the PLC project object The command starts the code generation for the selected PLC project (with the command Build project , for example). In a tabular view, Standard Metrics , TwinCAT then displays the desired metrics (parameters) for each programming block used. The metrics to be displayed are activated in the project properties (see Configuration of the metrics [ } 93] ). TE1200 112 Version:

2.11.1 Differences 'Run static analysis' command 'Run static analysis [Check all objects]' command Scope of application/ mode of operation Objects used: The activated rules are applied to the objects that are used in the PLC project. Unused objects: Unused objects are not checked with this command. Objects used: The activated rules are applied to the objects that are used in the PLC project. Unused objects: The rules that are activated and that can be checked in the precompile are applied to the unused objects. See also: Precompile [} 119] Note If you also wish to have the unused objects checked by the static analysis, you can use the 'Run static analysis [check all objects]' command.

The command is primarily useful when creating libraries or when processing library projects. Execution options for the command Static analysis can be performed either explicitly using the command or implicitly. Implicit execution of the static analysis during each code generation can be enabled or disabled in the PLC project properties (Settings [} 13] tab). If the Perform static analysis automatically option is enabled, TwinCAT performs the static analysis after each successful code generation (with the Build project command, for example). The command can also be called up via the Automation Interface. See also:

Automation Interface support [} 130] The "Check all objects" variant cannot be executed implicitly. It can only be executed explicitly via the command. The command can also be called up via the Automation Interface. See also: Automation Interface support [} 130]