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
AxisReference to axis
Input
EnableBOOLTRUE: Enables the execution of the function block. WhileTRUE, the outputvalueprovides the parameter value continuously for reading out.ParameterNumberDINTYou 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
ValidBOOLTRUE: Parameter is available.BusyBOOLTRUE: Execution of the function block has not been finished yet.ErrorBOOLTRUE: Error has occurred during execution.ErrorIDSMC_ERRORError identification
ValueLREALValue of the parameter specified in input``ParameterNumber``.