Skip to main content
Search

Using POUs for Implicit Checks

CODESYS provides special POUs which implement implicit monitoring functions. At runtime, these functions check the limits of arrays or subrange types, the validity of pointer addresses, and division by zero.

  1. In the device tree, select the Application object.

    Click Project → Add Object → POU for Implicit Checks.

    The Add POU for Implicit Checks dialog opens.

  2. Select the desired functions.

  3. Click the Add button.

    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 get the feature for monitoring functions, do not edit the declaration part. However, you are permitted to add local variables.