Herunterladen Inhalt Inhalt Diese Seite drucken
Inhaltsverzeichnis

Werbung

Rev. 1.17
10.10

Achsen

Mit Hilfe dieser Klasse können Motoren aller Art angesprochen werden. Sie bietet eine einheitliche
Schnittstelle für Schrittmotor- und Servo-Achsen wie INFO-HCSr, IMP-SMC, IMP-SMI und IMP-DAC
mit IMP-INC.
Die meisten Funktionen können synchron oder asynchron aufgerufen werden, d.h. man kann mit Hil-
fe eines Parameters definieren, ob die Funktion sofort zurückkehrt (asynchron) oder erst wenn der
Befehl abgearbeitet wurde (synchron).
Entscheidet man sich für die asynchrone Version, liefert die Funktion einen Zeiger auf ein
Sync-Object zurück, mit Hilfe dessen auf das Funktionsende gewartet werden kann.
Beispiel
#include <CINOSMotors.h>
// try to find motor with name 'XAchse'
CINOSMotor* motor = pINOSMotors->Find(„XAchse");
// stop if not found
ASSERT_ALWAYS(motor)
// get pointer to motor contorller
CINOSMotorController* controller = motor->GetController();
// activate controller
controller->Activate();
// do synchronous move to absolute position 10.0
controller->Absolute();
controller->Move(10.0, false);
// do asynchronous move to absolute position 20.0
CINOSSync* sync = controller->Move(20.0, true);
// wait until we are there
sync->Wait();
Für weitere Hilfe suche in der Online-Hilfe nach:
- CINOSMotorController
- Kapitel 10.12.1.2 Achen bewegen
- Kapitel 6 im "Regler Manual AC-Servo Kontroller"
CH-8332 Russikon
22. Juni 2004
IMP - Indel Modular Peripherie
43

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Verwandte Produkte für Indel IMP

Inhaltsverzeichnis