FB_ClockTimerParamLoad_TcPfw()

FB_ClockTimerParamLoad_TcPfw() 1:

This function block loads the saved settings of the timer.

Syntax

VAR_IN_OUT
    ClockItf: ST_TcPfw_ClockTimerItf;
END_VAR
VAR_INPUT
    Idx     : INT;
    Execute :  BOOL:=FALSE;
    PathName: STRING(80);
END_VAR
VAR_OUTPUT
    Done    : BOOL:=FALSE;
    Error   : BOOL:=FALSE;
    ErrorId : UDINT:=0;
END_VAR

FB_ClockTimerParamLoad_TcPfw() 2: Inputs

Name

Type

Description

Idx

INT

Timer number

Execute

BOOL

The loading process is started with a rising edge.

PathName

STRING

Path name where the timer settings can be loaded.

FB_ClockTimerParamLoad_TcPfw() 3: Inputs/outputs

Name

Type

Description

ClockItf

ST_TcPfw_ClockTimerItf

Current settings of the timer as binary file.

FB_ClockTimerParamLoad_TcPfw() 4: Outputs

Name

Type

Description

Done

BOOL

Feedback that loading was successful.

Error

BOOL

Error while loading timer settings.

ErrorId

UDINT

Error number

Behavior of the function block:

A positive edge at the Execute input activates the loading process. After a successful loading process, a Done is present for one cycle. If loading is not successful, an error with error number is returned.