Please enable JavaScript to view this site.

Function to bring the controlled variable (typically an axis) to the specified target with the specified velocity.

The function, runtime, checks that the maximum speed and acceleration specified for the controlled variable are not exceeded.

The function also checks, again runtime, that the controlled variable does not go outside the specified end of strokes by performing a controlled stop on them.

To override the control of strokes set them to the same value.

Syntax

i32 tracking (stru_track stru)

stru

Structure of type stru_track for data exchange

Result

Returns:

Value

Meaning

-9

Parameter delta <= 0

-6 [M_IN_ALARM]

acc parameter null

-5 [M_ILLEGAL_ARGS]

maxspeed parameter null

5 [M_FOLLOWING]

Target not reached - tracking in progress

6 [M_REACHED]

Target reached - one of the two position limits reached

8 [M_SYNCHRONIZED]

Target reached - moving in torque

9 [M_ACCEL_LIMITED]

Target not reached - tracking in progress - acceleration limitation

10 [M_SPEED_LIMITED]

Target not reached - tracking in progress - speed limitation

17 [M_DECEL]

Target not reached - deceleration to reach either position limit

19 [M_OUT_OF_LIMITS]

Target not reached - attempt to move further out of position limits

Validity

Rule

Note

If you want to disable limits control, impose them the same value

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC