beckhoff TE1200 — 10.2 Standard metrics

Examples | Standard metrics See also: NC0003: BOOL [ } 84] NC0031: Function block instance [ } 86] NC0102: PROGRAM [ } 88] 3) Forbidden symbols The bit string operator XOR and the bit shift-operators SHL, SHR, ROL and ROR are configured as forbidden symbols. These operators should not be used in the code. Consequently, the use of these operators is reported as an error after the static analysis has been performed. 10.2 Standard metrics | Standard metrics A sample for dealing with the standard metrics is provided below.

In this example, "650" (= 650 bytes) is defined as the upper limit for the metric Code size [number of bytes] [ } 94] and "5" as the upper limit for the metric Number of input variables [ } 97] . The Rule SA0150: Violations of lower or upper limits of the metrics [ } 71] is also activated and configured as a warning. When the command 'View Standard Metrics' [ } 112] is issued, the metric view opens and the indicators that were determined are displayed in tabular form. As the size of the MAIN program is 688 bytes and the SampleProgram program has 7 input variables, these figures exceed the defined upper limits, so the corresponding table fields are highlighted in red. TE1200 134 Version:

2.11.1