FB_ClockTimerParamSave_TcPfw()

FB_ClockTimerParamSave_TcPfw() 1:

This function block saves the current settings of the timer as a binary file.

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_ClockTimerParamSave_TcPfw() 2: Inputs

Name

Type

Description

Idx

INT

Timer number

Execute

BOOL

The storage process is started with a rising edge.

PathName

STRING

Path name where to save the timer settings.

FB_ClockTimerParamSave_TcPfw() 3: Inputs/outputs

Name

Type

Description

ClockItf

ST_TcPfw_ClockTimerItf

 

FB_ClockTimerParamSave_TcPfw() 4: Outputs

Name

Type

Description

Done

BOOL

Feedback that saving was successful.

Error

BOOL

Error while saving timer settings.

ErrorId

UDINT

Error number

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