MC_WriteBoolParameter (FB)

 

FUNCTION_BLOCK MC_WriteBoolParameter

MC_WriteBoolParameter modifys the value of the SoftMotion parameter specified in ParameterNumber. The Boolean variable Value contains the value for writing.

Notice

EtherCAT CoE and CAN, CANopen Encoding of Parameter­Number

diParameterNumber := -DWORD_TO_DINT(SHL(USINT_TO_DOWRD(usiDataLength), 24)
                    + SHL(UINT_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_WriteBoolParameter.

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

BOOL

Boolean value to be written for the specified parameter in ParameterNumber.

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