5-46
esp_set_speed Set Axis Speed
esp_get_speed Report Axis Speed Setting
Synopsis:
#include “esp6000.h”
int esp_set_speed(long axis, float speed)
int esp_get_speed(long axis, float *speed)
Arguments:
long axis
axis number from 1-6
float speed
target speed <= maximum speed (in user units/second)
Library Location:
\esp6000.dll
Description:
esp_set_speed() sets the target slew (top) speed for the specified axis. Note that if
acceleration is too shallow the axis may not reach the target speed.
esp_get_speed() reports target slew speed setting for the specified axis.
Returns:
ESPOK, ESPERROR
Hint:
Usage Example:
#include “esp6000.h”
main()
{
long error, servotick;
if (!esp_init_system())
{
printf(“ESP6000 Not Initialized! \r\n”);
exit(-1);
}
/* set axis 1 trajectory parameters */
esp_set_speed(1, 30.0);
esp_set_accel(1, 200.0);
esp_set_decel(1, 150.0);
/* check error status */
esp_get_error_num(&error,&ServoTick)
;
if (error) printf(“Error %d Reported!\r\n”, error);
}
See Also:
esp_set_accel(), esp_set_decel(), esp_move_absolute(), esp_set_resolution()
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com