Esp_Set_Master_Initial_Position(Long Master, Double Position); Esp_Get_Master_Initial_Position(Long Master, Double *Position) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_set_master_initial_position
esp_get_master_initial_position
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
5-64
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Set Master Initial Position
Report Master Initial Position
#include "esp6000.h"
int esp_set_master_initial_position(long master, double position)
int esp_get_master_ initial_position(long master, double position)
long slave
master axis number from 1-8
double position
master initial position (in user units)
\esp6000.dll
esp_set_master_initial_position() sets master initial position. This API function call
enables the user to define the master axis' initial position thereby eliminating the initial
'jump' that may occur in the slave axis as it begins slaving.
esp_get_master_initial_position() reports the present master initial position setting.
The controller defaults to normal (non-master/slave) mode after system reset.
ESPOK, ESPERROR
Hint:
#include "esp6000.h"
main()
{
if (!esp_init_system()) exit(-1);
/* assignment axis-2 (slave) to axis-1(master) */
esp_set_master_slave(1,2);
/* assign master/slave ratio */
esp_set_master_slave_ratio(2,-0.5);
/* set slave to track master position (encoder) */
esp_set_traj_mode(2, SLAVEP);
/* set master initial position */
esp_set_master_initial_position(1, 0.0);
/* set slave initial position */
esp_set_slave_initial_position(2, 0.0);
• • •
}
NOTE:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents