Section 5 — Programming
5-51
esp_set_jerk Set Axis Jerk Rate
esp_get_jerk Report Axis Jerk Rate Setting
Synopsis:
#include “esp6000.h”
int esp_set_jerk(long axis, float jerk)
int esp_get_jerk(long axis, float *jerk)
Arguments:
long axis
axis number from 1-6
float jerk
set desired jerk rate in user units/seconds
3
Library Location:
\esp6000.dll
Description:
esp_set_jerk() sets the target jerk rate for the specified axis. This parameter should only
be set while the axis is stopped. Jerk is the derivative of acceleration.
esp_get_jerk() reports the target jerk rate for the specified axis.
NOTE
The jerk parameter is only effective when the specified axis’ trajectory mode is set
to SCURVE.
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 S-Curve trajectory mode */
esp_set_traj_mode(1, SCURVE);
/* set axis 1 trajectory parameters */
esp_set_speed(1, 30.0);
esp_set_accel(1, 200.0);
esp_set_decel(1, 150.0);
esp_set_jerk(1, 10.0);
/* check error status */
esp_get_error_num(&error,&ServoTick)
;
if (error) printf(“Error %d Reported!\r\n”, error);
}
See Also:
esp_get_jerk(), esp_set_speed(), esp_set_accel(), esp_set_decel(), esp_traj_mode(),
esp_set_resolution()
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...