MC_ SEW_ReadWriteInitialParameterArray
This function block writes or reads parameter arrays to or from the device when the logical device starts up. Use this function block to read or write parameters once when starting up the MOVI-C® CONTROLLER. The function block must be called in the 1st cycle with Execute TRUE.
For an application example, refer to chapter Writing additional drive process values to the device.

You use this function block to access parameters that are organized in an array, e.g. to add additional drive process values to the PI data source. Whether a parameter is organized as an array or as a single parameter can be seen in the tooltip of the parameter in MOVISUITE®. The data type of an array parameter is ParaWordPtr[x], the data type of a single parameter is e.g. Uint32.
VAR_IN_OUT
Variable name | Data type | Description |
|---|---|---|
Axis | AXIS_REF | Reference to a logical device See also AXIS_REF. |
Parameter | ARRAY[*] OF ST_ParamV2 | Array with index, subindex and data |
VAR_INPUT
Variable name | Data type | Description |
|---|---|---|
Execute | BOOL | Start execution of the function block. |
VAR_OUTPUT
Variable name | Data type | Description |
|---|---|---|
Done | BOOL | Function block successfully completed |
Busy | BOOL | Function block is active |
Error | BOOL | An error has occurred in the function block |
ErrorID | WORD | Error number |
