Versions Compared

Key

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

...

This watchdog must be activated in

...

the CODESYSControl.cfg configuration file.

Info

Depending on the runtime, the configuration file is located in the following place: Location of the configuration file

configuration file.

The limit is defined

...

in the CmpSchedule section.
Experience has shown that communication problems occur more often in the case of controllers under high loads.

Expand
titleStandard Project Example

...

  • Select CODESYS Control Win V3

...

  •  as the PLC device.
  • Define the target system by means of the Network scan.

...


  • Image Added

  • Edit

...

  • the "PLC_PRG" POU

...

Column
width7

Declaration

...

width93
  • as follows:

...

  • iec-code

...

themeConfluence

...

VAR
    xToggle   : BOOL;
    xSwitch   : BOOL;
    udiCnt    : UDINT;
END_VAR

...

Column
width7

Implementation

...

width93

...

themeConfluence

...

  • VAR
        xToggle   : BOOL;
        xSwitch   : BOOL;
        udiCnt    : UDINT;
    END_VAR


    Iec code
    TypeImplementation

    udiCnt := udiCnt + 1;
    IF xSwitch Then
        WHILE TRUE DO
            xToggle := NOT xToggle;
        END_WHILE

  • END_IF


  • Start the project and

...

  • set the "xSwitch" variable to TRUE.

...


  • Image Added



The following entries are located in the PLC log:

...


Image Added

Processor load and Multicore

With the introduction of multicore support (since V3.5.SP13), the processor load is calculated as the average of all CPUs.
This also applies for the runtime license without multicore support.

Therefore, the following situation results in the case of an active infinite loop for an 8-core processor:

...


Image Added

To trigger the watchdog, the limit has to be set to approximately 10% in the ini file.

...

themeConfluence


[CmpSchedule]

...


ProcessorLoad.Maximum=10