MCV_DiscardParamChg
Discard changes
With this function block, the work list can be deleted, thus discarding all parameter changes in the work list.
CAUTION | |
If the work list has already been activated with the MCV_ActivateParamChg function block, these changes are active in the controller and can no longer be reversed with this function block. If these modified parameter values are also to be reversed, the original list must be read in with the MCV_ChgParamSet function block. |
Block diagram
Parameters of the function block
VAR_IN_OUT | |||
| Axis | AXIS_REF | Axis reference |
VAR_INPUT | |||
| Execute | BOOL | Discard changes at rising edge. |
| NCListTypeIn | STRING | Identification of parameter or list type, e.g. ‘ACHS_MDS’. |
| NCParamSetIDIn | UINT | Number of parameter set to be discarded. |
VAR_OUTPUT | |||
| Valid | BOOL | Indicates if the changes have been discarded successfully. |
| 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 for which the changes have to be discarded. |
| 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. Save 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 changes could not be reversed 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.
A frequent cause of ISG-MCP errors are absent write privileges or a write-protected work list because, in these cases, the work list cannot be deleted.