Command 'View Standard Metrics [Check all objects]'

Symbol: Command 'View Standard Metrics [Check all objects]' 1:

Function: The command starts the static metric code analysis for the currently active PLC project and displays the metrics for all programming blocks 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). TwinCAT shows the selected metrics for each programming block in the tabular Standard Metrics view. The metrics to be displayed are activated in the project properties (see Configuration of the metrics).

If a value is outside the range defined by a lower and/or upper limit in the configuration, the table cell is shown in red.

The table can be sorted by columns by clicking on the respective column header.

Command 'View Standard Metrics [Check all objects]' 2:

Please note that the selected PLC project is created before this command is executed. Creation of the standard metrics is only started if the code generation was successful, i.e. if the compiler did not detect any compilation errors.

 

Please also note the Command 'View Standard Metrics' and the differences between the two commands, which are described in the following table.

Differences

Command 'View Standard Metrics'

Command 'View Standard Metrics [Check all objects]'

Scope

The standard metrics are created for the objects used in the PLC project. Objects that are not used are not considered with this command.

The scope of this command thus corresponds to the build commands Build Project/Solution or Rebuild Project/Solution respectively.

If you want to create default metrics for unused objects, which is useful when editing library projects, you can use the command 'View Standard Metrics [Check all objects]'.

The standard metrics are created for all objects located in the project tree of the PLC project.

This is primarily useful when creating libraries or when processing library projects.

The scope of this command thus corresponds to the build command Check all objects.