Esp_Set_Slave_Initial_Position(Long Slave, Double Position); Esp_Get_Slave_Initial_Position(Long Slave, Double *Position) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_set_slave_initial_position
esp_get_slave_initial_position
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
Set Slave Initial Position
Report Slave Initial Position
#include "esp6000.h"
int esp_set_slave_initial_position(long slave, double position)
int esp_get_slave_ initial_position(long slave, double position)
long slave
slave axis number from 1-6
double position
slave initial position (in user units)
\esp6000.dll
esp_set_slave_initial_position() sets slave initial position. This API function call
enables the user to define where the slave axis is to begin tracking the master, thereby
eliminating the initial 'jump' that may occur.
esp_get_slave_initial_position() reports the present slave 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 d1mode(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
5-65

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents