MCV_ChgParamSet
Change parameter set
A parameter set can be changed with this function block. The original list of the selected parameter set is interpreted, and the parameters take effect in the ISG-MCP. For example, it is necessary to change to another parameter set when changing tools.
CAUTION | |
During the parameter set change, the axis must be at standstill and motion commands must not have been or must not be started for the axis. The axis must not be moved again until all parameters of the new parameter set have been read in and have taken effect in the controller ( |
CAUTION | |
The controller's behavior may change when the parameter set is changes. This may modify or deactivate functions critical to safety. |
Block diagram
Parameters of the function block
VAR_IN_OUT | |||
| Axis | AXIS_REF | Axis reference. |
VAR_INPUT | |||
| Execute | BOOL | Start changing of parameter set at rising edge. |
| NcListTypeIn | STRING | Identification for parameter or list type, e.g. ‘ACHS_MDS’. |
| NcParamSetIDIn | UINT | Number of parameters set to be changed. The value 0 for the parameter set ID indicates the default parameter set that is interpreted and activated while the start up of the Motion Controller. Please consider the directive for alternative parameter sets. |
VAR_OUTPUT | |||
| Valid | BOOL | Indicates if the change of the parameter set 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 the parameter set. |
| NCParamConsistent | BOOL | Indicates if all parameters has been successfully set 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. Change 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 set has not been changed correctly. An error has occurred either in the function block itself or in the ISG-MCP. TheNCError
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 and the old parameters remain unchanged.
CAUTION | |
If the function block assumes the error state when the parameter set is changed, i.e. ‘Error’ = TRUE and at the same time· |
- If the function block 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.
CAUTION | |
If the parameter set are saved in files, the default parameter set for the specified axis is the one specified in the startup list. It is interpreted and activated while starting up the Motion Controller. Example for the first axis in the system:achs_mds[0] isgnc\listen\achsmds1.lisFor choosing the default parameter set |