MC_WriteParameter (FB)ΒΆ

FUNCTION_BLOCK MC_WriteParameter

MC_WriteParameter writes the value of the SoftMotion parameter specified in ParameterNumber.

InOut:

Scope

Name

Type

Comment

Inout

Axis

AXIS_REF_SM3

Reference to axis

Input

Execute

BOOL

Rising edge: starts the execution of MC_WriteParameter.

ParameterNumber

DINT

You can find a description of the most used parameter numbers in AXIS_REF_SM3. Negative values are fieldbus specific parameters. See SMC_ParameterNumber_CoE and SMC_ParameterNumber_SoE to translate fieldbus object identifiers to parameter numbers.

Value

LREAL

Output

Done

BOOL

TRUE: Parameter has been written successfully.

Busy

BOOL

TRUE: Execution of the function block has not been finished.

Error

BOOL

TRUE: Error has occurred during execution.

ErrorID

SMC_ERROR

Error identification