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 (Valid = TRUE).

CAUTION

The controller's behavior may change when the parameter set is changes. This may modify or deactivate functions critical to safety.

Block diagram

MCV_ChgParamSet 1:

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

CAUTION

If the function block assumes the error state when the parameter set is changed, 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.

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 NCParamSetIDIn has to be set to 0.The names of all further files with alternative parameter sets for this axis consist of the name of the default parameter set, appended with the underline sign ‘_’ and an additional number.achsmds1_1.lisachsmds1_2.lis...The appended number has to be set to NCParamSetIDIn if an alternative parameter set is to be activated. The files containing the alternative parameter sets must be in the same directory as the file of the default parameter set.