MCV_ActivateParamChg
Activate modified parameters from the work list
As a result of this activation, the modified parameters stored in the work list are adopted by the ISG-MCP and take effect in the controller. At the same time, the parameter values are checked for plausibility.
Notice

This function block is not available in TwinCAT systems..
Attention

When a parameter set is activated, the axis must be at standstill and no motion commands may have been started or be started for the axis. The axis may only be moved again after all parameters have been completely activated ("valid" = TRUE).
Attention

When a parameter set is activated with the work list, the behaviour of the controller may change. It may also change or deactivate safety-critical functions.
Block diagram

FB parameters
VAR_IN_OUT | |||
Variable name | Data type | Description | |
Axis | AXIS_REF | Axis reference | |
VAR_INPUT | |||
Variable name | Data type | Description | |
Execute | BOOL | A change of the parameter is executed on a rising edge. | |
NCListTypeIn | STRING | Identifier for parameter or list type | |
NCParamSetIDIn | UINT | Number of the parameter set which is to be activated. | |
VAR_OUTPUT | |||
Variable name | Data type | Description | |
Valid | BOOL | Is TRUE when the activation was successfully executed. | |
Busy | BOOL | Is TRUE if the FB is still active. | |
NCListTypeOut | STRING | Identifier for parameter or list type | |
NCParamSetIDOut | UINT | Number of the parameter set which was activated. | |
NCParamConsistent | BOOL | Is FALSE if an error occurred while updating a parameter in the ISG-MCP and values from different parameter sets are used in the ISG-MCP. | |
NCWarning | BOOL | Is TRUE if a warning occurred in the ISG-MCP. | |
NCError | BOOL | Is TRUE if an error occurred in the ISG-MCP during activation. | |
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. Parameter activation 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. Updating the parameter set was not executed successfully. An error occurred either in the function block itself or in the ISG-MCP. The "NCError" output parameter indicates whether an error occurred in the ISG-MCP.
- If “NCError“ = TRUE and “NCParamConsistent“ = TRUE, the new parameter set was not interpreted correctly. No new parameters were read from the work list and the old parameters are retained unchanged in the controller.
Attention

If the function block enters error state when the parameter set with the work list is updated, i.e. “Error” = TRUE and at the same time “NCError” = TRUE and “NCParamConsistent” = FALSE, the controller has inconsistent data.
Either a new parameter set must be read in correctly or the controller must be rebooted.
- If the FB returns a warning (“NCWarning” = TRUE), at least one parameter was not adopted and the value of this parameter was corrected internally by the controller.
- Successful activation of the work list is a condition for it being written back later as an original list using the MCV_SaveParamChg function block.
- If the parameters in the work list were not activated successfully, they can be deleted using the function block MCV_DiscardParamChg. This discards all parameter changes made.