CODESYS provides special POUs that implement implicit monitoring functions. At runtime, these functions check the array limits or subrange types, the validity of pointer addresses, or division by zero.
-
Select the “Application” object in the device tree.
Click “Project Add Object POU for Implicit Checks”
The “Add POU for Implicit Checks” dialog box opens.
-
Select the desired functions.
-
Click “Add”.
The selected POUs are inserted below the “Application” in the device tree.
-
Open the POUs in the editor.
-
Adapt the implementation suggestion to your requirements.
CAUTION
To obtain the feature for monitoring functions, do not edit the declaration section. However, you are permitted to add local variables.