MC_WriteParameter (FB)ΒΆ

FUNCTION_BLOCK MC_WriteParameter

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

Hint

EtherCAT CoE, CAN, CANopen Encoding of ParameterNumber

diParameterNumber := -DWORD_TO_DINT(SHL(TO_DOWRD(usiDataLength), 24)
                                    + SHL(TO_DWORD(uiIndex), 8)
                                    + usisubIndex);
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

This fieldbus specific parameter ID must be encoded in a variable of type DINT. Then it can serve as input for this function block. Example EtherCAT CoE and CAN, CANopen

You can find a description of the most used parameter numbers in AXIS_REF_SM3.

Value

LREAL

Output

Done

BOOL

Busy

BOOL

Error

BOOL

ErrorID

SMC_ERROR