SMC_BrakingDistance (FUN)ΒΆ

FUNCTION SMC_BrakingDistance : LREAL

Computes the (signed) braking distance from a given velocity and acceleration to velocity 0 and acceleration 0. The signed distance is the difference between the position where standstill is reached and the current position.

InOut:

Scope

Name

Type

Comment

Inout Const

Axis

AXIS_REF_SM3

Input

v0

LREAL

Velocity at start

a0

LREAL

Acceleration at start

Deceleration

LREAL

Maximum deceleration in u/s^2 (positive)

Jerk

LREAL

Maximum jerk in u/s^3 (positive)

Return

SMC_BrakingDistance

LREAL