Please enable JavaScript to view this site.

Function that brings the controlled unit from the current speed (corresponding to the first function call) to the desired speed, controlling acceleration with the specified jerk.

Variation of the desired units (target position, steady state speed, acceleration and jerk) is possible at any time.

The function ends its work when it stops at the specified target position.

NOTE: It is analogous to the mv_to_cj() function, but this one only allows you to start with an initial velocity of 0.

Syntax

i32 mv_to_cjv (stru_mvtocjv|stru_mvtocjve stru [, i32 holdFlag=0] [, real fr=1])

stru

Variable of type stru_mvtocjv or stru_mvtocjve containing the parameters of the function

holdFlag

Flag to command the hold state to the mission. (optional, default 0)

fr

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

See fr

Result

Returns the state of the function (see return codes):

Value

Description

-6 [M_IN_ALARM]

Alarm present

2 [M_POSITIONING]

Initial positioning

13 [M_OVERSHOOTING]

Target position exceeded

15 [M_ACCEL]

Acceleration in progress

16 [M_AT_SPEED]

Movement at speed

17 [M_DECEL]

Deceleration in progress

6 [M_REACHED]

Target reached

Validity

Rule

Note

You can increase the diagnostics in the report via the predefined variable sys_flag.10.

In the stru_mvtocjve, in case of dSpeed=0, you have automatic writing of the stop position and its time required

 

  

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