MC_ReadParameter (FB)ΒΆ

FUNCTION_BLOCK MC_ReadParameter

MC_ReadParameter returns the value of the SoftMotion parameter specified in input ParameterNumber. If necessary, the returned variable Value will be converted to LREAL.

InOut:

Scope

Name

Type

Comment

Inout

Axis

AXIS_REF_SM3

Reference to axis

Input

Enable

BOOL

TRUE: Enables the execution of the function block. While TRUE, the output value provides the parameter value continuously for reading out.

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.

Output

Valid

BOOL

TRUE: Parameter is available.

Busy

BOOL

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

Error

BOOL

TRUE: Error has occurred during execution.

ErrorID

SMC_ERROR

Error identification

Value

LREAL

Value of the parameter specified in input``ParameterNumber``.