MC_WriteParameter_SML (FB)ΒΆ
FUNCTION_BLOCK FINAL MC_WriteParameter_SML
Writes the value of a SoftMotion or axis specific parameter.
For the list of all SoftMotion parameter numbers see Axis_REF_SML.
The value of parameters is converted from LREAL.
To write an axis specific parameter, the axis specific parameter number must be negated. For CANOpen based parameter, the axis specific parameter number is built from the object length 16#UV (1 Byte), object number 16#ABCD (2 Bytes) and the subindex 16#EF (1 Byte): 16#UVABCDEF.
Example: write object 16#6070, subindex 0: ParameterNumber:= -16#04607000.
Note
Axis specific parameters are interpreted as unsigned values
and converted from LREAL.
- InOut:
- Scope - Name - Type - Comment - Inout - Axis- Reference to the axis - Input - Execute- BOOL- Rising edge: Writing is started - ParameterNumber- DINT- Number of the parameter - Value- LREAL- Value to be written - Output - Done- BOOL- The value was written successfully - Busy- BOOL- The FB is not finished and new output values are to be expected - Error- BOOL- An error occurred - ErrorID- The error number 
