FC_PrgResetAndStart - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.35.2.0

Versions:

Current version

NOTE: This function is available as of version V.1.35.2.0.

In previous versions, the function returns the value "-80".

Task

Reset and start the application via the user program.

Description

The function starts an asynchronous task that performs the reset (warmstart) and start of the application. The tasks finish at least their current cycle and continue to run some cycles until the effective restart, that is, even the user code located downstream of the function FC_PrgResetAndStart() is further processed. The asynchronous task runs with the IEC task priority IEC_PRIO_LOW + 1 (VxWorks priority 252).

Return Value

Data type

Description

DINT

0: The return value is always 0

Example

diResult := FC_PrgResetAndStart();