SMC_FollowPositionVelocity (FB)

 

FUNCTION_BLOCK SMC_FollowPositionVelocity

This function block employment is equivalent to SMC_FollowPosition, except for the velocity that may be defined in addition.

InOut:

Scope

Name

Type

Comment

Inout

Axis

AXIS_REF_SM3

Input

bExecute

BOOL

Rising edge: Starts the execution of the function block.

fSetPosition

LREAL

Set position in technical units [u].

fSetVelocity

LREAL

Set velocity in technical units/sec [u/s].

Output

bBusy

BOOL

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

bCommandAborted

BOOL

TRUE: The command has been aborted by another command.

bError

BOOL

TRUE: Error has occurred within the function block.

iErrorID

SMC_ERROR

Error identification