FB_ClockTimerParamSave_TcPfw()
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
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. |
Inputs/outputs
Name | Type | Description |
---|---|---|
ClockItf | ST_TcPfw_ClockTimerItf |
|
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.