beckhoff TE1200 — 5.1 Command 'Run static analysis'

Commands | Command 'Run static analysis' 5 Commands | Commands 5.1 Command 'Run static analysis' | Command 'Run static analysis' Symbol: Function: This command initiates static code analysis for the currently active PLC project and displays the results in the error list. Call: Menu Build or context menu of the PLC project object During execution of the static analysis, the system checks for compliance with coding rules, naming conventions and prohibited symbols. This command can be used to trigger a static analysis manually (explicit execution), or the analysis can be performed automatically during code generation (implicit execution, see below for more information).

TwinCAT displays the results of the static analysis – i.e. messages regarding rule violations – in the error list. The rules [ } 15] , naming conventions [ } 80] and forbidden symbols [ } 108] to be taken into account in the static analysis can be configured in the PLC project properties. You can also define under Rules [ } 15] whether the violation of a coding rule should appear as an error or a warning Error list [ } 118] . Please note that the selected PLC project is created before this command is executed. Checking via the static analysis 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 'Run static analysis [Check all objects]' [ } 111] and the differences between the two commands, which are described in the following table. TE1200 110 Version: 2.11.1