SMC_MoveContinuousAbsolute (FB)

 

FUNCTION_BLOCK SMC_MoveContinuousAbsolute

This function block executes a absolute movement, but in opposite to MC_MoveAbsolute will not reach the target position with velocity value zero, but with a specified velocity. It is designed for generating via move­ments. When having reached the target position, the function block sets the InEndVelocit output and keeps this velocity until interrupted by another drive.

InOut:

Scope

Name

Type

Initial

Comment

Inout

Axis

AXIS_REF_SM3

Reference to axis

Input

Execute

BOOL

Rising edge: Starts the execution of the function block.

Position

LREAL

Target position for motion (in technical units [u])

Velocity

LREAL

Value of maximum velocity (not necessarily reached) [u/s]

EndVelocity

LREAL

Unsigned (!) value of end velocity [u/s]

EndVelocityDirection

MC_Direction

current

Determines direction of end velocity. Permissible values: positive, negative, current; Not applicable: shortest, fastest

Acceleration

LREAL

Value of acceleration (increasing energy of the motor) [u/s²]

Deceleration

LREAL

Value of deceleration (decreasing energy of the motor) [u/s²]

Jerk

LREAL

Value of the jerk [u/s³]

Direction

MC_Direction

shortest

Enum type. Permissible values:

for linear/finite axes: positive, negative

for rotatory/modulo axes: positive, nega­tive, current, shortest, fastest

Output

InEndVelocity

BOOL

TRUE: Commanded position has been reached.

Busy

BOOL

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

CommandAborted

BOOL

TRUE: Command has been aborted by another command.

Error

BOOL

TRUE: Error has occurred within the function block..

ErrorID

SMC_ERROR

Error identification