Move services, Long moveabort(void), Long moveabsolute(long position) – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual

Page 81: Long moveclosebuffer(void), Long movecorrect(long distance), Move services -41

Advertising
background image

Publication 2098-PM001E-EN-P — July 2002

Referencing the Motion Library

2-41

Move Services

long MoveAbort(void);

Halts motion immediately, ignoring deceleration and position values.

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

long MoveAbsolute(long position);

Starts a move to an absolute position with respect to the position
regulator command position, not the move object position. The
position regulator command position is subtracted from the specified
position argument to give an incremental move distance with respect
to the move object command position.

Move status may be checked with a MoveInProgress function.

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

Note: Returns an error if a move is already in progress.

long MoveCloseBuffer(void);

Closes the move buffer which was opened with the MoveOpenBuffer
function.

Returns 0 if successful, or -1 on an error

long MoveCorrect(long distance);

Corrects a move to stop a specified distance from the current position.
New target position is the current position plus the specified distance.
Uses the programmed move acceleration, deceleration, and velocity
values. Distance is programmed in counts.

Move status may be checked with a MoveInProgress function.

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

ATTENTION

!

This function stops motion immediately; without
decelerating the motor in a controlled manner.

If a controlled deceleration is desired, your program
should use the MoveStop function to slow the motor
using the programmed deceleration value.

Advertising