Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

The implicit checks are performed only for code within the project.

If libraries are to be checked, then the compiler definition checks_in_libs must be set.

Example:

Requirement

  • Create a "Standard project" and select "CODESYS ControlWin V3" as the device.
  • Define the target system by means of the Network scan.

...

  • Adapt the "PLC_PRG" POU as follows:

...


Section
Column
width7

Declaration

Column
width93
iec-code

VAR

iIndex : INT;
astInst : ARRAY

themeConfluence
VAR iIndex : INT; astInst : ARRAY

[1..5]

OF

INT

:=

[5(101)];

xActivate : BOOL;


xActivate : BOOL;

END_VAR

columntheme

IF

xActivate

THEN xActivate

THEN
    xActivate :=

FALSE;

FOR iIndex


    FOR iIndex :=

0

TO

5

DO

DO
        astInst[iIndex]

:=

234;


    END_FOR


END_IF

Sectioniec-code
Type
width7
Implementation
Column
width93
Code Block
Confluence


Downloading and starting the project

...

Warning

These kinds of mistakes in the memory can have unexpected results, as severe are the controller crashing.

...



The following dialog opens automatically, where the type of check can be selected.
Select the option Bound checks.



...