Section 5 — Programming
5-65
esp_set_slave_initial_position
Set Slave Initial Position
esp_get_slave_initial_position
Report Slave Initial Position
Synopsis:
#include “esp6000.h”
int esp_set_slave_initial_position(long slave, double position)
int esp_get_slave_ initial_position(long slave, double position)
Arguments:
long slave
slave axis number from 1-6
double position
slave initial position (in user units)
Library Location:
\esp6000.dll
Description:
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.
NOTE
The controller defaults to normal (non-master/slave) mode after system reset.
Returns:
ESPOK, ESPERROR
Hint:
Usage Example:
#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);
•
•
•
}
See Also:
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание ESP6000
Страница 24: ...1 1 0 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 44: ...2 2 0 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 96: ...5 30 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 122: ...5 56 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 142: ...5 76 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 164: ...5 98 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 170: ...5 104 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 178: ...5 112 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 216: ...7 6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 226: ...8 1 0 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 232: ...9 6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 238: ...A 6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 246: ...B 8 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 278: ...D 4 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 286: ...F 2 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 288: ...G 2 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 290: ...G 4 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...