Long movedv(long distance, float vel), Long movedvs(long distance, float vel), Long movedvt(long distance, float vel, float time) – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual

Page 83: Movedv • movedvs • movedvt

Advertising
background image

Publication 2098-PM001E-EN-P — July 2002

Referencing the Motion Library

2-43

long MoveDV(long distance, float vel);

The distance argument is the delta distance of the move.

The vel argument specifies the move profile final velocity.

This function fits a move profile to the specified DV parameters using
linear acceleration and deceleration.

Note: Negative motion requires both the distance and the vel
arguments to be negative.

Returns 0 if successful, or -1 on an error.

long MoveDVS(long distance, float vel);

The distance argument specifies the incremental distance of the move.

The vel argument specifies the move profile final velocity.

This function inserts into the move buffer a two-segment move profile
fit to the specified DV parameters using S-curve acceleration and
deceleration.

Note: Negative motion requires both the distance and the vel
arguments to be negative.

Returns 0 if successful, or -1 on an error.

long MoveDVT(long distance, float vel, float time);

The distance argument specifies the incremental distance of the move.

The vel argument specifies the move profile final velocity.

The time argument specifies the time duration of the move.

This function inserts into the move buffer a single-segment move
profile fit to the specified DVT parameters.

Note: Negative motion requires both the distance and the vel
arguments to be negative.

Returns 0 if successful, or -1 on an error.

Advertising