Newport ESP6000 User Manual page 139

Motion controller/driver
Table of Contents

Advertisement

esp_set_tachometer_constant Set UniDrive Axis Motor Tachometer Constant
esp_get_tachometer_constant Get UniDrive Axis Motor Tachometer Constant
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
Section 5 — Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_set_tachometer_constant(long axis, float tach)
int esp_get_tachometer_constant(long axis, float tach)
long axis
axis number from 1-6
float tach
motor tachometer constant (in volts/Krpm)
\esp6000.dll
esp_set_tachometer_constant() API call is used to set the UniDrive6000 motor amplifier
tachometer constant for the specified servo axis and should be used in conjunction with
esp_set_gear_constant(). To take immediate effect this command should be followed
with the esp_update_unidrive() command.
Tachometer feedback provides improved servo stability.
Poor servo performance can occur if tachometer constant is inappropriately set.
Please refer to tachometer specifications before setting value.
ESPOK, ESPERROR
Hint:
#include "esp6000.h"
main()
{
long error, servotick;
if (!esp_init_system())
{
printf("ESP6000 Not Initialized! \r\n");
exit(-1);
}
/* Set Axis-1 Motor Current */
esp_set_motor_current(1, 1.9);
/* Set Axis-1 Stage Gear Constant */
esp_set_gear_constant(1, 0.3);
/* Set Axis-1 Tachometer Constant */
esp_set_tachometer_constant(1, 3.1);
/* Update Unidrive6000 Axis-1 */
esp_update_unidrive(1);
/* Save new settings to non-volatile memory */
esp_save_parameters();
/* check error status */
esp_get_error_num(&error,&ServoTick) ;
if (error) printf("Error %d Reported!\r\n", error);
}
esp_set_gear_constant(), esp_update_unidrive(), esp_save_parameters()
CAUTION
5-73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents