SMC_Inch (FB)

 

FUNCTION_BLOCK SMC_Inch

This function block causes a gradual motion on the axis, which is carried out step by step.

InOut:

Scope

Name

Type

Initial

Comment

Inout

Axis

AXIS_REF_SM3

Reference to axis

Input

InchForward

BOOL

TRUE: Axis is moved with the dynamic values Velocity, Acceleration, Deceleration and Jerk in a posi­tive direction until Distance has been travelled.

If InchForward is set to FALSE and back to TRUE, a further motion is started.

If InchForward is set to FALSE before Distance has been travelled, the axis is immediately decelerated to the velocity value zero. Busy is then set to FALSE.

If InchBackward and InchForward are TRUE at the same time, then no motions are carried out.

InchBackward

BOOL

TRUE: Axis is moved with the dynamic values Velocity, Acceleration, Deceleration and Jerk in a negative direction until Distance has been travelled.

If InchBackward is set to FALSE and back to TRUE, a further motion is started.

If InchBackward is set to FALSE before Distance has been travelled, the axis is immediately decelerated to the velocity value zero and Busy is then set to FALSE.

If InchBackward and InchForward are TRUE at the same time, then no motions are carried out.

Distance

LREAL

Distance that is travelled

Velocity

LREAL

Positive velocity in [u/s]

Acceleration

LREAL

Positive acceleration in [u/s²]

Deceleration

LREAL

Positive deceleration in [u/s²]

Jerk

LREAL

Positive jerk in [u/s³]

Output

Busy

BOOL

FALSE

TRUE: Function block operating

CommandAborted

BOOL

FALSE

TRUE: Execution has been interrupted by another function block instance operating on Axis.

CommandAborted remains set as long as InchFor­ward or InchBackward is set, but for at least one cycle.

Error

BOOL

TRUE: Error has occurred while InchForward or InchBackward have been set for one cycle.

ErrorId

SMC_ERROR

Error identification