beckhoff TE1200 — 4.4.1.6 Number of global variables used

Configuration | Metrics Assumption: The "TwinCAT RT (x86)" solution platform is used for the calculation. The device has a stack alignment of 4 bytes, which can result in gaps between the variables. The total stack size of F_Sample is 16 bytes and consists of: 2 input variables with 2 bytes each = 4 bytes No padding bytes Return value INT = 2 bytes Padding bytes for the stack alignment = 2 bytes 3 local variables with 2 bytes each = 6 bytes Padding bytes for the stack alignment = 2 bytes VAR_STAT is not stored on the stack and therefore does not increase the stack size of a POU. 4.4.1.4 Number of calls | Number of calls 4.4.1.5 Called in tasks | Called in tasks Sample:

FUNCTION_BLOCK FB1 FUNCTION_BLOCK FB2 EXTENDS FB1 FUNCTION_BLOCK FB3 EXTENDS FB2 Each function block is instantiated and called in a separate program. In addition, each program is called in a separate task. The metric Called in tasks therefore results: For FB3 : 1 For FB2 : 2, as the calls from FB2 and FB3 ( EXTENDS FB2 ) are counted. For FB1 : 3, as the calls from FB1 , FB2 and FB3 are counted. 4.4.1.6 Number of global variables used | Number of global variables used TE1200 96 Version:

2.11.1 Title short form Calls Categories Informative Definition Number of calls to the program organization unit (POU) within the application Further information If a program is called in a task, this call is also counted. Title short form Tasks Categories Maintainability, reliability Definition Number of tasks in which the program organization unit (POU) is called up Further information For function blocks, the number of tasks in which the function block itself or any function block in the function block's inheritance tree is called is counted. For methods and actions, the number of tasks in which the (higher-level) function block is called is displayed.

Title short form Globals Categories Maintainability, reusability Definition Number of different global variables used in the program organization unit (POU)