MCV_DiscardParamChg

Discard changes

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

Notice

notice

This function block is not available in TwinCAT systems..

Notice

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
e.g. “ACHS_MDS“

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,
e.g. “ACHS_MDS“

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:

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.