Section 5 — Programming
5-53
esp_set_home_speed Set Axis Home Speed
esp_get_home_speed Report Axis Home Speed Setting
Synopsis:
#include “esp6000.h”
int esp_set_home_speed(long axis, float speed)
int esp_get_home_speed(long axis, float *speed)
Arguments:
long axis
axis number from 1-6
long speed
target home speed <= maximum speed (in user units/second)
Library Location:
\esp6000.dll
Description:
esp_set_home_speed() sets the target slew speed, or velocity, for the specified axis. The
Homing algorithm uses the previously set acceleration, deceleration, and jerk settings.
esp_get_home_speed() reports the present target slew speed setting for the specified
axis.
NOTE
If acceleration is too shallow the axis may not reach the target speed.
Returns:
ESPOK, ESPERROR
Hint:
During first time system testing set home speed to 1/10 of maximum speed.
Usage Example:
#include “esp6000.h”
main()
{
long error, servotick;
if (!esp_init_system())
{
printf(“ESP6000 Not Initialized! \r\n”);
exit(-1);
}
/* Enable Axis 2 Motor Power */
esp_enable_motor(2);
/* Set Axis Home Speed */
esp_set_home_speed(2,20.0);
/* Begin Home Search On Axis 2 */
esp_find_home(2,1);
/* Wait For Home Search Completion */
while (!esp_home_done(2));
/* check error status */
esp_get_error_num(&error,&ServoTick)
;
if (error) printf(“Error %d Reported!\r\n”, error);
}
See Also:
esp_find_home(), esp_home_done()
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...