Please enable JavaScript to view this site.

Function that moves the given axes (1-:-32) toward the target position value set with a velocity profile toward trapezoidal time.

Note: The difference with the mva_to_n_v() function is that it cannot be called with axis(s) already in motion and the final velocity on the target cannot be specified.

Syntax

i32 mva_to_n (i32 start, stru_mvitp stru [, i32 nDef=1] [, i32 holdFlag=0] [, real fr=1])

start

Flag to enable data re-acknowledgement (only if axes stopped).

The flag is reset when the data is taken

stru

Structure of type stru_mvitp containing motion-related parameters

nDef

Array size (number of axes involved). (optional, default 1)

holdFlag

Flag to command HOLD status to the mission. (optional, default 0)

fr

Speed reduction value (0-1). (optional, default 1)

See fr

Result

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

Value

Description

-5 [M_ILLEGAL_ARGS]

Illegal parameter (acc=0 or illegal axis number)

-6 [M_IN_ALARM]

Alarm (axis ip already set)

2 [M_POSITIONING]

Initial positioning

6 [M_REACHED]

Target reached.

This means that either the direction is 0 and the axis is stationary, or the direction is +1 or -1 and the axis has reached one of the end of strokes

14 [M_HOLDED]

Motion stopped due to HOLD flag.

It is also returned in cases where the desired axis speed is imposed to 0 or the feedrate is set to zero

15 [M_ACCEL]

Acceleration in progress

16 [M_AT_SPEED]

Motion at speed

17 [M_DECEL]

Deceleration in progress

Validity

Rule

Note

The mission may involve multiple axes (max 32). They will be linearly interpolated in order to reach their targets all together

 

  

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