MC_SEW_ReadListOfPoints
With this function block, the user can read in a curve point table contained in a file and save it in an object of the type ST_PointsList.
The function block should not be called in the task in which the setpoint generation takes place (usually TaskHighPrio). It is recommended for the function block to be called either in a free-running task or a cyclical task with a priority that is lower than the priority of the TaskHighPrio.

VAR_INPUT
Variable name | Data type | Description |
|---|---|---|
Execute | BOOL | Start execution of the function block |
sFileName | STRING(255) | Name of the file |
uiTimeMaxUs | UINT | Maximum processing time of the function block in µs per PLC cycle Reading a curve point table from a file can be resource-intensive and lead to a significant increase in the cycle time. Consequently, the user can use the uiTimeMaxUs parameter to specify the time in µs by which the call of the function block may extend the cycle time of the relevant task. |
rstPointsList | REFERENCE TO ST_PointsList | Reference to a structure of type ST_PointsList in which the points to be interpolated are to be saved. |
VAR_OUTPUT
Variable name | Data type | Description |
|---|---|---|
Done | BOOL | The configuration was successful. |
Busy | BOOL | The configuration is being carried out. |
Error | BOOL | An error has occurred in the function block |
ErrorID | MC_ErrorId | Error number |
