# MCV_ActivateParamChg

Activate modified parameters from the work list

As a result of this activation, the modified parameters stored in the work list are accepted by the ISG-MCP and take effect in the controller. On the occasion of this activation, the parameter values are simultaneously checked for plausibility.

## Attention

During activation of a parameter set, the axis must be at standstill and motion commands must not have been or must not be started for the axis. The axis may only be moved again after completed activation of all parameters (fb_"valid" = TRUE).

## Attention

The controller's behaviour may change on activation of a parameter with the work list This may modify or deactivate functions critical to safety.

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 | The parameter is executed on the rising edge.
NCListTypeIn | STRING | Identifier for parameter or list type e.g. "ACHS_MDS"
NCParamSetIDIn | UINT | Number of the parameter set to be activated.

VAR_OUTPUT
Variable name | Data type | Description
Valid | BOOL | Is TRUE when activation was successful.
Busy | BOOL | Is TRUE when the FB is still active.
NCListTypeOut | STRING | Identifier for parameter or list type e.g. "ACHS_MDS"
NCParamSetIDOut | UINT | Number of the parameter set which was activated.
NCParamConsistent | BOOL | Is FALSE when an error occurs in the ISG-MCP when a parameter is updated and values from different parameter sets are used in the ISG-MCP.
NCWarning | BOOL | Is TRUE if a warning occurs in the ISG-MCP.
NCError | BOOL | Is TRUE if an error occurs 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. The parameter 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 set has not been updated correctly. 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.
- If the “NCError” is TRUE and “NCParamConsistent” is TRUE, the new parameter set was not interpreted properly. No new parameters have been read in from the work list and the old parameters remain unchanged in the controller.

## Attention

If the function block reverts to error state when the parameter set is updated in the work list, i.e. “Error” = TRUE and “NCError” = TRUE at the same time and “NCParamConsistent”, the control unit is in possession of inconsistent data.

Either a new parameter set must be correctly read in or the controller must be restarted.

- If the FB returns a warning ("nc_warning" = TRUE), it was not possible to accept at least one parameter and this parameter's value has been internally corrected by the controller.
- Successful activation of the work list is the prerequisite for it to be written back as the original list with the MCV_SaveParamChg function block.
- If the parameters of the work list could not be activated successfully, the work list can be deleted with the MCV_DiscardParamChg function block, thus discarding all parameter changes made.