MC_WriteLrealParameter

This function block is used to change the values of control system parameters. You can change the parameters of various control system components.

Notice

notice

Only drive parameters can be changed (ParameterType:= 'Drive'). If you try to change other parameter types, it will result in an error message.

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

Must have the value TRUE in order to write the parameter value.

ParameterNumber

STRING

Identifier of the parameter to be written.

ParameterType

STRING

Kind of parameter to be written.

Possible values:

'Drive'

Value

LREAL

New value of the parameter.

ParameterSetID

INT

Identifier indicating the parameter set in which the value is to be written.

-1 at this input means that no parameter set was selected. The input is defaulted with this value.

SubdeviceID

INT

Identifier indicating the device for which the value is to be written.

-1 at this input means that no unit was selected. The input is defaulted with this value.

WaitAck

BOOL

Input which influences the reaction of the motion controller to the command acknowledgement.

TRUE – the motion controller stops the interpolation with this command.

FALSE – the interpolation of the motion controller is not stopped when the command is received.

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

Is TRUE when the parameter was successfully written.

Busy

BOOL

Is TRUE if the FB is still active.

Error

BOOL

Indicates whether an error occurred in the FB.

ErrorID

WORD

Error identifier

InternalErrorID

UDINT

Internal error identification of the ISG-MCP.

Behaviour of the FB: