Using POUs for Implicit Checks¶
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
- ⇒
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.
See also