SMC_SetTorque (FB)

 

FUNCTION_BLOCK SMC_SetTorque

This function block can be used to create a torque if the drive is in controller mode "torque".

InOut:

Scope

Name

Type

Initial

Comment

Inout

Axis

AXIS_REF_SM3

Reference to axis

Input

bEnable

BOOL

FALSE

TRUE: Enables the execution of the function block.

fTorque

LREAL

Torque in Nm

Output

bBusy

BOOL

FALSE

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

bError

BOOL

FALSE

TRUE: Error has occurred within the function block.

nErrorID

SMC_ERROR

0

Error identification