Long jogsetdec(float dec), Long jogsetvel(float vel), Jog services – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual

Page 78: Long jogabort(void), Long jogforward(void), Long jogreverse(void), Jog services -38, Jogsetdec • jogsetvel, Jogabort • jogforward • jogreverse

Advertising
background image

Publication 2098-PM001E-EN-P — July 2002

2-38

Referencing the Motion Library

long JogSetDec(float dec);

Sets the default deceleration for the jog. Deceleration is programmed
in counts/second².

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

long JogSetVel(float vel);

Sets the default velocity for the jog. Velocity is programmed in counts/
second.

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

Jog Services

long JogAbort(void);

Halts jog immediately, without deceleration.

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

long JogForward(void);

Starts the jog motion in the forward direction using the programmed
jog acceleration, deceleration, and velocity values. Forward is positive
with respect to programmed jog velocity.

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

long JogReverse(void);

Starts the jog motion in the reverse direction using the programmed
jog acceleration, deceleration, and velocity values. Reverse is negative
with respect to programmed jog velocity.

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

ATTENTION

!

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

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

Advertising