Esp_Set_Motor_Type(Long Axis, Long Mtype); Esp_Get_Motor_Type(Long Axis, Long *Mtype) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_set_motor_type Set Axis Motor Type
esp_get_motor_type Report Axis Motor Type Setting
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Hint:
Usage Example:
See Also:
5-12
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_set_motor_type(long axis, long mtype)
int esp_get_motor_type(long axis, long *mtype)
long axis
axis number from 1-6
long mtype
possible motor types are (0)UNDEFINED, (1)DCSERVO,
(2)STEPPER
\esp6000.dll
esp_set_motor_type() defines the motor type or technology used to control the speci-
fied axis.
esp_get_motor_type() reports the motor type or technology used to control the speci-
fied axis.
This is necessary because the ESP6000 needs to apply different control algorithms for
different motor types. For example, DC servos are controlled via digital-to-analog
converter (DAC) whereas stepper motors are positioned via digital rate multiplier.
It will not be possible to control an axis if its motor type is undefined or equal to
zero (0).
Motor type is automatically set for ESP-compatible stages.
ESPOK, ESPERROR
Verify motor/stage is a defined motor type.
#include "esp6000.h"
main()
{
if (!esp_init_system()) exit(-1);
/* define axis 1 as DC servo */
esp_set_motor_type(1, DCSERVO);
/* Save new settings to non-volatile memory */
esp_save_parameters();
}
esp_save_parameters()
NOTE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents