MCV_ChgParamValue
Change parameter value
With this function block, a parameter is written into the work list of the specified parameter set. This parameter set need not correspond to the active one. When a parameter is changed in a parameter set for the first time, a copy of the original list is created as the work list.
| |
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. |
Block diagram

Parameters of the function block
VAR_IN_OUT | |||
| Axis | AXIS_REF | Axis reference. |
VAR_INPUT | |||
| Execute | BOOL | Change of parameter value at rising edge. |
| NCListTypeIn | STRING | Identification of parameter or list type, e.g. ‘ACHS_MDS’. |
| NCParamSetIDIn | UINT | Number of parameter set in which the value is to be changed. |
| NCParamIdentIn | STRING | Identification of the parameter to be changed, e.g. ‘kenngr.swe_pos’. |
| NCParamValueIn | STRING | New value of the parameter. |
VAR_OUTPUT | |||
| Valid | BOOL | Indicates if the change of the parameter has been successful. |
| Busy | BOOL | Indicates if the function block is still busy. |
| nc_list_type_out | STRING | Identification of parameter or list type, e.g. ‘ACHS_MDS’. |
| NCListTypeOut | UINT | Number of parameters set in which the parameter value should have been changed or is changed. |
| NCParamSetIDOut | STRING | Identification of the parameter to be changed, e.g. ‘kenngr.swe_pos’. |
| NCParamIdentOut | STRING | New value of the parameter. |
| NCParamValueOut | BOOL | Indicates if a warning in the ISG-MCP has occurred. |
| NCError | BOOL | Indicates if an error in the ISG-MCP has occurred. |
| NCErrorCode | UDINT | Error identification of the error in the ISG-MCP. |
| Error | BOOL | Indicates if an error has occurred. Change of parameter set is not executed. |
| ErrorID | WORD | Error identification. |
Behavior of the function block
- The function block 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.