FC_CycleCheckTimeSet - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.32.6.0

Versions:

Current version

Task

Modify the times for the task cycle time monitoring.

Description

The function manipulates the time values for the task cycle time check functions of the task calling it.

i_diOverrunTime determines the value for default cycle time check [ms] (diagnostic message 8317 "Cycle time overrun").

i_diWDogFactor determines the value for a cycle time error (diagnostic message 8313 "Excessive cycle time overrun").

The values of both inputs (i_diOverrunTime and i_diWDogFactor) have to be greater than 0 (zero).

The task continues to be called at the interval defined in the task configuration.

Interface

Input

Data type

Description

i_diOverrunTime

DINT

Value for the standard cycle time monitoring

i_diWDogFactor

DINT

Value for the watchdog factor

Return Value

Data type

Description

DINT

0: OK

-2: i_diOverrunTime is 0 (zero) or less

-3: i_diWDogFactor is 0 (zero) or less