Please enable JavaScript to view this site.

Function that is used to realize tracking of one axis (slave) against another (master).

HINT: We recommend using the more performant mv_follow2() function.

Syntax

real mv_follow (i32 return, stru_follow stru)

return

Variable containing information about the state of the function (see returns codes).

Value

Description

2 [M_POSITIONING]

When the function is first called, the user must set the state to M_POSITIONING.

The slave axis is moving to the parking position

3 [M_WAITING]

The slave axis is waiting to start

4 [M_WAITING_NEXT_CYCLE]

There are no conditions to start. Waiting for the next appointment

6 [M_REACHED]

The slave axis is tracking

stru

Structure of type stru_follow containing parameters related to movement

Result

Updated value of slave axis position

Validity

Rule

Note


Following can be single or cyclically repeated, but in any case there must be a waiting phase beginning tracking, in which the axis is stationary.

The master could be a controlled physical axis, but also a simple external reference (e.g., a line encoder) or even a virtual quota constructed and evolved by the application software.

The slave axis must necessarily be a controlled axis.

 

  

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