Esp_Set_Motor_Current(Long Axis, Float Current); Esp_Get_Motor_Current(Long Axis, Float *Current) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_set_motor_current
esp_get_motor_current
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
5-72
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Set UniDrive Axis Motor Current
Get UniDrive Axis Motor Current
#include "esp6000.h"
int esp_set_motor_current(long axis, float current)
int esp_get_motor_current(long axis, float current)
long axis
axis number from 1-6
float current
motor current from 0 through 8.0 amps
\esp6000.dll
esp_set_motor_current() API function call is used to set the Unidrive6000 motor
amplifier current for the specified axis. To take immediate effect this command should
be followed with the esp_update_unidrive() command.
Motor damage can occur if current is set too high. Please refer to motor specifica-
tions 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);
}
/* Change Axis-1 Motor Current */
esp_motor_current(1, 1.9);
/* 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_update_unidrive(), esp_save_parameters()
CAUTION

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents