FB_ClockTimerParamLoad_TcPfw()
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
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. |
Inputs/outputs
Name | Type | Description |
---|---|---|
ClockItf | ST_TcPfw_ClockTimerItf | Current settings of the timer as binary file. |
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.