Issuing of messages | Precompile 6.2 Precompile | Precompile Available from TwinCAT 3.1 Build 4026 Most Static Analysis rules can already be checked during precompilation. For the detection of such rule violations no explicit execution of the Static Analysis is necessary, but the check already takes place on the basis of the precompile information during editing. The checking of a rule during precompilation takes place only if the rule is enabled in the Static Analysis settings. Please note the options for configuring the precompile behavior , see: Rules [ } 15] .
If a rule violation is detected during pre-compilation, it is immediately indicated by a wavy underline in the declaration editor or the ST editor. The precompile messages also appear in the error list (see also: Error list [ } 118] ). Available rules Not available: Please note that the following rules cannot be checked during precompilation. SA0004: Multiple write access on output [ } 21] SA0006: Write access from several tasks [ } 23] SA0016: Gaps in structures [ } 27] SA0027: Multiple usage of name [ } 33] SA0028: Overlapping memory areas [ } 33] SA0042: Usage of different access paths [ } 39] SA0100: Variables greater than bytes [ } 56] SA0103:
Concurrent access on not atomic data [ } 58] SA0105: Multiple instance calls [ } 59] SA0150: Violations of lower or upper limits of the metrics [ } 71] SA0160: Recursive calls [ } 71] SA0175: Suspicious operation on string [ } 78] Available: All other rules are checked on the basis of the precompile information. 6.3 QuickFix commands | QuickFix commands For some rules that can be checked during precompilation [ } 119] , the Declaration Editor, the ST Editor and the Error List [ } 118] offer a QuickFix. Procedure in the declaration or ST editor:
You can carry out automatic, immediate error handling directly at the affected code position by first clicking on the undercut code in the editor and then on the light bulb symbol. This will open a menu with the available QuickFix commands at this point. Procedure in the error list: To access the QuickFix commands in the error list, click on the "..." button in the respective message line in the error list which is displayed in the Action column. TE1200 119 Version: 2.11.1