MCV_ChgParamSet

Change parameter set

This function block can switch the axis parameter set. The activating parameter set must be present and selected by assigning the “NCParamSetIDIn” input.

For example, this function is used for a tool change to inform the motion controller of the changed tool dimensions.

Attention

attention

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).

Attention

attention

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

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 parameter set is changed on the rising edge.

NcListTypeIn

STRING

Identifier for parameter or list type
e.g. "ACHS_MDS"

NcParamSetIDIn

UINT

Number of the parameter set to be changed.

The value 0 for the parameter set ID indicates the default parameter set which is interpreted and activated at motion controller start-up.

Value range [0 … 10]

Please observe the rules for alternative parameter sets.

VAR_OUTPUT

Variable name

Data type

Description

Valid

BOOL

Is TRUE when the change in parameter set was successful.

Busy

BOOL

Is TRUE when the FB is still active.

NCListTypeOut

STRING

Identifier for parameter or list type
e.g. "ACHS_MDS"

NCParamSetIDOut

UINT

Number of the parameter set to which the change was/should be made.

NCParamConsistent

BOOL

Is FALSE the parameters were not successfully adopted during a change of parameter set in the ISG-MCP.

NCWarning

BOOL

Is TRUE if a warning occurs in the ISG-MCP.

NCError

BOOL

Is TRUE if an error occurs in the ISG-MCP during a change in parameter set.

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. A parameter set change was not executed properly.

ErrorID

WORD

Error code.

1) Availability is dependent on the MCE used.

Behaviour of the FB

Attention

attention

If the function block reverts to error state when the parameter set is changed, i.e. “Error” = TRUE and “NCError” = TRUE at the same time and “NCParamConsistent”, the control unit is in possession of inconsistent data.

Either a new parameter set must be correctly read in or the controller must be restarted.

Example

example

Using the “NCParamSetIDIn” block

If the parameter sets are saved to files, as is the case with sets of the ACHS_MDS type, the default parameter set is the one which is specified in the start-up list for the associated axis and which is interpreted and activated when the motion controller is started up. Example of the 1st axis in the system:

achs_mds[0]      isgnc\listen\achsmds1.lis

The default parameter is selected when the value 0 is applied to the “NCParamSetIDIn” input.

The names of all further files with alternative parameter sets for this axis are derived from the name of the default parameter set appended by an additional number and separated by an underscore.

achsmds1_1.lis

achsmds1_2.lis

...

The appended number is applied to the “NCParamSetIDIn” input if an alternative parameter set is to be activated.

The files containing the alternative parameter sets must be located in the same directory as the file of the default parameter set.