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.

  1. 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.

  2. Select the desired functions.

  3. Click Add.

    ⇒ The selected POUs are inserted below the Application in the device tree.

  4. Open the POUs in the editor.

  5. 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