MCV_SaveParamChg
Save modified parameters
This function block saves the work list as the original work list after it is successfully updated. The previous work list is deleted after it is successfully saved.
Thus, after a restart of the controller or after a parameter set change, the modified parameters are remanently available in the original list.
Notice
If a warning has occurred on activation of the work list, at least one parameter has been corrected in the controller. This corrected value is not included in the original list. When the original list is read in, the warning appears again and the parameter value is corrected again.
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 changed parameters are saved on the rising edge. |
NCListTypeIn | STRING | Identifier for parameter or list type |
NCParamSetIDIn | UINT | Number of the parameter set to be saved. |
VAR_OUTPUT | ||
Variable name | Data type | Description |
Valid | BOOL | Is TRUE when the change parameters were saved successfully. |
Busy | BOOL | Is TRUE when the FB is still active. |
NCListTypeOut | STRING | Identifier for parameter or list type |
NCParamSetIDOut | UINT | Number of the parameter set which was/is to be saved. |
NCWarning | BOOL | Is TRUE if a warning occurs in the ISG-MCP. |
NCError | BOOL | Is TRUE if an error occurred in the ISG-MCP when the changed parameters were saved. |
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. Saving the changed parameters was not successful. |
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 saved 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 original list because, in these cases, the original list cannot be replaced.