MCV_DiscardParamChg
Discard changes
This function block is used to delete the work list. This discards all parameter changes in the work list.
Notice

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

If the work list was already activated by the MCV_ActivateParamChg function block, the changes in the controller are effective and this function block can no longer reverse this situation. In order to reverse the changed parameter values, the original list must be read in using the MCV_ChgParamSet function block.
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 | Discarding changes is executed on a rising edge. |
NCListTypeIn | STRING | Identifier for parameter or list type |
NCParamSetIDIn | UINT | Number of the parameter set whose changes are to be discarded. |
VAR_OUTPUT | ||
Variable name | Data type | Description |
Valid | BOOL | Is TRUE when the parameter set changes were discarded successfully. |
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 whose changes are to be discarded. |
NCWarning | BOOL | Is TRUE if a warning occurred in the ISG-MCP. |
NCError | BOOL | Is TRUE if an error occurred in the MCE while changes were discarded. |
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 changes in the parameter set were not discarded 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. Parameter changes could not be cancelled correctly. 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.
A frequent cause of ISG-MCP errors are absent write accesses or a write-protected work list since in these cases the work list cannot be deleted.