Section 5 — Programming
5-55
esp_set_jog_speed Set Axis Jog Mode Speed
esp_get_jog_speed Report Axis Jog Mode Speed Setting
Synopsis:
#include “esp6000.h”
int esp_set_jog_speed(long axis, float speed)
int esp_get_jog_speed(long axis, float *speed)
Arguments:
long axis
axis number from 1-6
float speed
target jog speed and direction <= maximum speed (in user units/second)
Library Location:
\esp6000.dll
Description:
esp_set_jog_speed() sets the target slew speed (velocity) for the specified axis. The
sign of the jog speed determines the direction of the axis motion. For example, if the jog
speed is defined as -2.0, then after the trajectory mode is set to jog (e.g.,
esp_set_traj_mode(1, JOG)) the specified axis will move in the negative direction at set
speed.
esp_get_jog_speed() reports target slew speed setting for the specified axis.
In order for the axis to begin jog motion it first has to be placed in jog trajectory mode
with the esp_set_traj_mode() command.
While in jog trajectory mode the axis will move indefinitely or until an esp_stop(),
esp_stop_all() command is received.
Note that if acceleration is too shallow the axis may not reach the target speed.
Returns:
ESPOK, ESPERROR
Hint:
Use esp_stop() function to stop jog motion.
Usage Example:
#include “esp6000.h”
main()
{
long error, servotick;
if (!esp_init_system()) exit(-1);
esp_enable_motor(1);
/* set axis 1 to jog trajectory mode */
esp_set_traj_mode(1,JOG);
/* set axis 1 speed and direction */
esp_set_jog_speed(1, -20.0);
•
•
•
/* stop motion */
esp_stop(1);
}
See Also:
esp_set_traj_mode(), esp_stop(), esp_enable_motor()
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание ESP6000
Страница 24: ...1 1 0 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 44: ...2 2 0 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 96: ...5 30 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 122: ...5 56 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 142: ...5 76 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 164: ...5 98 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 170: ...5 104 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 178: ...5 112 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 216: ...7 6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 226: ...8 1 0 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 232: ...9 6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 238: ...A 6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 246: ...B 8 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 278: ...D 4 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 286: ...F 2 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 288: ...G 2 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 290: ...G 4 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...