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.
CAUTION | |
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 ("Valid = TRUE). |
CAUTION | |
The controller's behaviour may change on activation of a parameter with the work list. This may modify or deactivate functions critical to safety. |
Block diagram
Parameters of the FB
VAR_IN_OUT | |||
| Axis | AXIS_REF | Axis reference. |
VAR_INPUT | |||
| Execute | BOOL | Activation of the parameter at rising edge. |
| NCListTypeIn | STRING | Identification of parameter or list type, e.g. ACHS_MDS. |
| NCParamSetIDIn | UINT | Number of parameter set to be activated. |
VAR_OUTPUT | |||
| Valid | BOOL | Indicates if the activation has been successful. |
| Busy | BOOL | Indicates if the function block is still busy. |
| NCListTypeOut | STRING | Identification of parameter or list type, e.g. ACHS_MDS. |
| NCParamSetIDOut | UINT | Number of parameter set in which the parameter value should have been activated or is activated. |
| NCParamConsistent | BOOL | Indicates if all parameters has been successfully activated while changing the parameter set. |
| NCWarning | 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. Activation of parameter set is not executed. |
| ErrorID | WORD | Error identification. |
Behavior 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 “NCError” = TRUE and “NCParamConsistent” = TRUE, the new parameter set has not been correctly interpreted. No new parameters have been read in from the work list and the old parameters remain unchanged in the controller.
CAUTION | |
If the function block assumes the error state when the parameter set is updated with the work list, i.e. "Error” = TRUE and at the same time·”NCError” = TRUE and·“NCParamConsistent” = FALSE,then the controller has inconsistent data. Either a new parameter set must be correctly read in or the controller must be restarted. |
- If the FB returns a warning (“NCWarning” = 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.