Configuration | Metrics 4.4.1.10 Number of output variables | Number of output variables Sample: METHOD METH : BOOL VAR_OUTPUT a : INT; b : LREAL; END_VAR The method METH has three outputs: Return value METH a b METHOD METH1 VAR_OUTPUT a : ARRAY[0..10] OF INT; b : LREAL; END_VAR The method METH1 has two outputs: a b 4.4.1.11 Number Of Statements (NOS) | Number Of Statements (NOS) Sample: FUNCTION_BLOCK FB_Sample VAR_OUTPUT nTest : INT; i : INT; END_VAR VAR bVar : BOOL; TE1200 98 Version:
2.11.1 Title short form Outputs Categories Maintainability, reusability Definition Number of variables declared in the VAR OUTPUT area of the program organization _ unit (POU) Further information For function blocks, this is the number of user-defined output variables (VAR OUTPUT). _ For methods and functions, this is the number of user-defined output variables (VAR OUTPUT) plus one if they have a return value. The return value is also counted. _ Inherited output variables are not counted. A high number of output variables is a sign of a violation of the principle of clear responsibility. Standard upper limit for the associated rule SA0166:
Maximum number 10 of input/output/ VAR IN OUT _ _ variables [} 74] Title short form NOS Categories Informative Definition Number of executable statements in the implementation of a function block, function or method Further information NOS = Number Of executable Statements Statements in the declaration, empty statements or pragmas are not counted.