MCV_ChgParamValue
Change parameter value
To prevent problems caused by incorrect parameterisation, this block does not change the original parameter set but creates a copy and writes the changes to it. This copy is referred to the work list in this documentation.
The original parameter set need not correspond to the currently active parameter data record. It is selected by specifying its code at the ”NcParamSetIDIn” input.
Notice
The modified parameters of the work list are not accepted by the ISG-MCP, and do not take effect, until after activation with the MCV_ActivateParamChg function block.
Blockdiagramm
Parameters of the FB
VAR_IN_OUT | ||
Variable name | Data type | Description |
axis | AXIS_REF | Axis reference |
VAR_INPUT | ||
Variable name | Data type | Description |
Execute | BOOL | A change in a parameter value is executed on the rising edge. |
NCListTypeIn | STRING | Identifier for parameter or list type |
NCParamSetIDIn | UINT | Number of the parameter set in which the parameter value is to be changed. |
NCParamIdentIn | STRING | Code of the parameter to be changed |
NCParamValueIn | STRING | New value of the parameter. |
VAR_OUTPUT | ||
Variable name | Data type | Description |
Valid | BOOL | Is TRUE when the change in parameter value was successful. |
Busy | BOOL | Is TRUE when the FB is still active. |
NCListTypeOut | STRING | Identifier for parameter or list type |
NCParamSetIDOut | UINT | Number of the parameter set in which the parameter value was/is to be changed. |
NCParamIdentOut | STRING | Code of the parameter to be changed |
NCParamValueOut | STRING | New value of the parameter. |
NCWarning | BOOL | Is TRUE if a warning occurs in the ISG-MCP. |
NCError | BOOL | Is TRUE when an error occurs in the ISG-MCP during a change in parameter value. |
NCErrorCode | UDINT | Error code of the error or warning occurring in the ISG-MCP. |
Error | BOOL | Is TRUE if the FB is in error state. The change in parameter set was not executed successfully. |
ErrorID | WORD | Error code. |
1) Availability is dependent on the MCE used.
Behaviour of the FB
- The FB is in an error state if "error" = TRUE. The parameter has not been written to the work list An error has occurred either in the function block itself or in the ISG-MCP. The "NCError" output parameter indicates whether an error has occurred in the ISG-MCP.
- A frequent cause of ISG-MCP errors are absent write privileges or a write-protected work list because, in these cases, a work list is not created or a parameter cannot be written.