Herunterladen Diese Seite drucken
HEIDENHAIN IK 220 Benutzerhandbuch
HEIDENHAIN IK 220 Benutzerhandbuch

HEIDENHAIN IK 220 Benutzerhandbuch

Pc-zählerkarte zum anschluss von heidenhain-messgeräten

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

Benutzer-Handbuch
User's Manual
IK 220
IK 220
PC-Zählerkarte zum Anschluss
von HEIDENHAIN-Messgeräten
PC Counter Card for
HEIDENHAIN encoders
5/2011

Werbung

Kapitel

loading

Inhaltszusammenfassung für HEIDENHAIN IK 220

  • Seite 1 Benutzer-Handbuch User's Manual IK 220 IK 220 PC-Zählerkarte zum Anschluss von HEIDENHAIN-Messgeräten PC Counter Card for HEIDENHAIN encoders 5/2011...
  • Seite 2: Inhaltsverzeichnis

    Anschluss X8, X9 für externe Ein-/Ausgänge ....15 Abruf der Messwerte über externe Eingänge ....17 Abruf-Ausgänge -Lout ............ 17 Messwerte von mehreren IK 220 abrufen ..... 18 Ablaufdiagramm: Speichern von Messwerten ....19 Betriebsparameter ....................20 Treiber-Software für WINDOWS ................23 Allgemeines ................
  • Seite 3 Inhalt Beispiele für LabView ............ 26 Beispiel für Linux ............26 Aufruf der DLL-Funktionen aus einem Anwenderprogramm .. 27 Microsoft Visual C++ ............. 27 Microsoft Visual Basic ........... 27 Borland Delphi ............... 27 Übersicht der DLL-Funktionen ..........27 Referenz der DDL-Funktionen ..........33 IK220Find ..............
  • Seite 4 Inhalt IK220ChkSumPar ............46 IK220ChkSumPrg ............46 IK220WritePar ............... 47 IK220ReadPar ..............47 IK220ResetEn ..............47 IK220ConfigEn ............... 48 IK220ReadEn ..............49 IK220ReadEnInc ............50 IK22ModeEnCont ............50 IK220ReadEnIncCont ............. 51 IK220AlarmEn ..............52 IK220WarnEn ..............52 IK220ReadMemEn ............53 IK220WriteMemEn ............
  • Seite 5: Lieferumfang

    Lieferumfang Lieferumfang PC-Zählerkarte IK 220 Id.-Nr. 337 481-01 Programmierbeispiele, Treiber-Software und Benutzer-Handbuch. Zubehör • IK Externe Ein-/Ausgänge Id.-Nr. 340 253-01 • Stecker für externe Ein-/Ausgänge Id.-Nr. 315 650-02 • Adapterkabel mit Stecker für HEIDENHAIN-Messgeräte mit sinusförmigen Spannungssignalen 1 V Id.-Nr. 310 199-xx mit sinusförmigen...
  • Seite 6 Lieferumfang Abhängig von der Eingangsschaltung der Folge-Elektronik Adapter 340 252-01 : 60 m max. EnDat/SSI: 10 m max. 310 199-xx EnDat/SSI 332 115-xx 309 783-xx (max. 9 m) 11 µA : 60 m max. 11 µA IK Externe Ein-/Ausgänge 340 253-01...
  • Seite 7: Wichtige Hinweise

    Wichtige Hinweise Wichtige Hinweise Das EnDat-Interface bietet die Möglichkeit im Speicher- bereich des Kunden maschinen- oder anlagenspezifische Daten zu hinterlegen (z. b. Nullpunktverschiebung, OEM- Daten, …). Diese Daten können sicherheitsrelevante Informationen beinhalten. Bei fehlerhafter Behandlung dieser Daten können Maschinen- oder Personenschäden die Folge sein.
  • Seite 8: Technische Beschreibung Der Ik 220

    EnDat- oder SSI-Schnittstelle angeschlossen werden. Die Posi- tionen der beiden Messgeräte werden mittels Software am PC angezeigt, im PC gespeichert und weiterverarbeitet. Die IK 220 ist ideal für Anwendungen, bei denen eine hohe Auf- lösung der Messgerät-Signale und eine schnelle Messwert- Erfassung erforderlich ist.
  • Seite 9: Zugriffszeit Auf Messwerte

    Technische Beschreibung der IK 220 Die Interpolations-Elektronik in der IK 220 unterteilt die Signalperiode des Eingangs-Signals bis zu 4096fach. Der Interpolationswert (12 Bit) bildet zusammen mit dem Wert des Periodenzählers (32 Bit) den 44 Bit breiten Messwert. Die Messwerte werden in 48 Bit breiten Daten-Registern gespei- chert, wobei die oberen Bits entsprechend der Zweierkomple- ment-Darstellung vorzeichenrichtig erweitert werden.
  • Seite 10: Hardware

    Hardware Hardware Spezifikation des PCI-Bus Die IK 220 kann in alle PCs mit PCI-Bus eingesetzt werden. Spezifikation PCI Local Bus Specification Rev. 2.1 Größe ca. 100 * 190 mm Stecker PCI 5 V / 32 Bit (2*60) Steckverbinder PCI-Baustein PCI 9052 von PLX, Target Interface...
  • Seite 11: Messgerät-Eingänge

    Hardware Messgerät-Eingänge An die IK 220 können Messgeräte mit folgenden Schnittstellen angeschlossen werden: • 11 µA • • EnDat 2.1 • Die Spannungsversorgung der Messgeräte (typ. 5,12 V) wird aus den +12 V des PCI-Bus erzeugt. Aus der +5 V Versorgung für die Messgeräte dürfen max.
  • Seite 12: Spezifikation Der 1 V Ss -Schnittstelle

    Die EnDat 2.1-Schnittstelle der absoluten Messgeräte ist bidirektional. Sie liefert die absoluten Positionswerte und ermöglicht den messgerätinternen Speicher zu lesen oder zu beschreiben. Zusätzlich stehen sinusförmige Spannungssignale (1 V ) zur Verfügung. Kabellänge: max. 10 m max. 50 m Mit Original-HEIDENHAIN-Kabeln. Versorgungsspannungs- grenzen des Messgerätes beachten.
  • Seite 13: Spezifikation Der Ssi-Schnittstelle

    Hardware Spezifikation der SSI-Schnittstelle Die SSI-Schnittstelle der absoluten Messgeräte ist unidirek- tional. Sie liefert die absoluten Positionswerte synchron zu einem von der Folge-Elektronik vorgegebenen Takt. Zusätzlich stehen sinusförmige Spannungssignale (1 V ) zur Verfügung. Kabellänge: max. 10 m Anschluss X1, X2 für Messgeräte Sub-D-Anschluss mit Stifteinsatz (15-polig) Anschluss- Belegung...
  • Seite 14: Messgerät-Ausgänge

    Hardware Messgerät-Ausgänge Die IK 220 gibt die Messgerät-Signale der Eingänge X1 und X2 zusätzlich an zwei 10-polige MICROMATCH-Stecker (Buchse) auf der Platine als sinusförmige Stromsignale (11 µA ) aus. Über eine zusätzliche Kabelbaugruppe mit PC-Slot-Abdeckung (Id.-Nr. 340 252-01) können diese Anschlüsse nach außen zu 9-poligen Sub-D-Anschlüssen geführt werden.
  • Seite 15: Kompensation Der Messgerät-Signale

    Hardware Messgeräte-Ausgänge (Ident-Nummer 340 252-01) Sub-D-Anschluss mit Stifteinsatz (9-polig) Anschluss-Nr. Signal 0 V (U nicht angeschlossen nicht angeschlossen Gehäuse Außenschirm Kompensation der Messgerät-Signale Messgerät-Signale können automatisch – auch online kompensiert werden. In der mitgelieferten Software sind entsprechende Funktionen enthalten. Externe Ein-/Ausgänge Für externe Ein-/Ausgänge ist eine zusätzliche Kabelbaugruppe mit PC-Slot-Abdeckung (IK externe Ein-/Ausgänge Id.-Nr.
  • Seite 16 Hardware Anschluss X11 und X21 für externe Ein-/Ausgänge (Option) Sub-D-Anschluss mit Stifteinsatz (9-polig) auf PC-Slot-Abdeckung Für externe Ein- und Ausgänge wird optional eine Baugruppe geliefert, bestehend aus einer Slot-Abdeckung mit zwei Sub-D- Anschlüssen, einer Entstörplatine und zwei Flachbandkabel zum Anschluss an 10-polige MICROMATCH-Stecker auf der Platine. Anschluss-Nr.
  • Seite 17: Abruf Der Messwerte Über Externe Eingänge

    Hardware Abruf der Messwerte über externe Eingänge Die IK 220 hat zwei externe Eingänge zum Abrufen und Speichern der Messwerte. Die Eingänge -L0 und -L1 sind low-aktiv; ein interner Pull-up- Widerstand (1,47 kΩ) hält sie auf High-Pegel. Sie können an TTL-Bausteine angeschlossen werden.
  • Seite 18: Messwerte Von Mehreren Ik 220 Abrufen

    Hardware Messwerte von mehreren IK 220 abrufen Damit die Messwerte aller Achsen mehrerer IKs gleichzeitig ge- speichert werden, muss das Ausgangs-Signal -Lout 2 zu allen beteiligten Messgerät-Eingängen (-L0 oder –L1) geführt werden – auch zu dem Eingang von dem -Lout 2 herausgeführt wird.
  • Seite 19: Ablaufdiagramm: Speichern Von Messwerten

    Hardware Ablaufdiagramm: Speichern von Messwerten Latch 0 Par. 14 Bit 0 Software latch 0 -L0 X11/2 & & IK220ModeTimer & Par. 14 Timer Bit 1 -Lout 1 X11/1 IK220LatchInt Latch 1 Par. 14 Bit 2 & Software latch 1 -L1 X11/3 Axis 0 Axis 1 Latch 0...
  • Seite 20: Betriebsparameter

    Betriebsparameter Betriebsparameter Die IK 220 benötigt Betriebs-Parameter um die gewünschten Funktionen richtig ausführen zu können. Es sind Defaultwerte voreingestellt, die beim Download der mitgelieferten Betriebs- software gesetzt werden. Die Defaultwerte sind in der folgenden Tabelle fett dargestellt. Parameterwerte lassen sich mit der Funktion IK220WritePar (Parameter schreiben) ändern und mit der...
  • Seite 21 Betriebsparameter Param. For- Bedeutung Nummer 16 Bit 0 bis 12: Anzahl Interpolations-Bits Defaultwert 12 Der Interpolationswert (16 Bit breit, max. 12 signifikante Bits, linksbündig) wird auf die Anzahl der eingestellten Bits gerundet und reduziert. 16 Bit 0: Korrekturrechnung für Positionswert aus 1: Korrekturrechnung für Positionswert ein 16 Bit 0: Ermittlung Korrekturwerte aus 1: Ermittlung Korrekturwerte ein...
  • Seite 22 Betriebsparameter Parameter 11: Zeitintervall zwischen zwei Latches per Timer: Folgende Werte sind über die Timer der IK 220 direkt einstellbar: Parameter- Zeit- Parameter- Zeit- wert intervall wert intervall 1000 µs 100 µs 1100 µs 150 µs 200 µs 1200 µs 250 µs...
  • Seite 23: Treiber-Software Für Windows

    Treiber-Software für WINDOWS Treiber-Software für WINDOWS Allgemeines Die Treiber-Software für die IK 220 ermöglicht es Anwendungen die IK 220 Zählerkarte von Windows 95/98, Windows NT/2000/XP, Linux und LabView aus anzusprechen. Der Zugriff erfolgt bei Windows über eine Dynamic Link Library (DLL) und einen Windows 95/98, Windows NT oder Windows 2000/XP Device Treiber.
  • Seite 24: Installation Des Treibers Und Der Dll Unter Windows 2000 Und Xp

    Der Windows NT Device Treiber ist ein Kernel Mode Treiber für Windows NT (Version 3.51 und 4.0). Er ermöglicht den Zugriff auf die IK 220. Vom Treiber werden bis zu 8 IK 220 unterstützt. Die Installation des Devicetreibers erledigt die Batch-Datei „Install.Bat“...
  • Seite 25: Device-Treiber Für Windows 95/98 (Ik220Vxd.vxd)

    Device-Treiber für Windows 95/98 (IK220VXD.VXD) Der Windows 95/98 Device-Treiber ist ein virtueller Device- Treiber für Windows 95/98 der den Zugriff auf bis zu 8 IK 220 unterstützt. Die Installation des Devicetreibers erledigt die Batch-Datei „Install.Bat“ im Verzeichnis „Disk1\Install“ im CD Verzeichniszweig "IK220".
  • Seite 26: Beispiele

    , EnDat) und setzen Sie die Messgerät-Parameter unter „Setup“. Beispiel für Borland Delphi Im Verzeichnis „\Disk3\Delphi“ auf der CD im Verzeichniszweig "IK 220" finden Sie eine Anwendung in Borland Delphi: Starten Sie IK220.exe. , 11 μA Wählen Sie die Schnittstelle (1 V , EnDat, SSI) und setzen Sie die Messgerät-Parameter unter...
  • Seite 27: Aufruf Der Dll-Funktionen Aus Einem Anwenderprogramm

    Borland Delphi In der Datei „\Include\DLLFunc.pas“ sind die Funktionen und Typen definiert um die DLL-Funktionen mit Borland Delphi verwenden zu können. Übersicht der DLL-Funktionen Funktion Kurzreferenz Installierte IK 220 BOOL IK220Find (ULONG* pBuffer16) feststellen IK 220 initialisieren BOOL IK220Init (USHORT Axis)
  • Seite 28 Treiber-Software für WINDOWS Funktion Kurzreferenz Synchrones Zählerwert BOOL IK220LatchExt (USHORT Card) speichern extern Zähler löschen mit BOOL IK220ResetRef (USHORT Axis) nächster Referenzmarke Zähler starten mit BOOL IK220StartRef (USHORT Axis) nächster Referenzmarke Zähler stoppen mit BOOL IK220StopRef (USHORT Axis) nächster Referenzmarke Zählerwert speichern BOOL IK220LatchRef (USHORT Axis)
  • Seite 29 USHORT* pIntpol) Position der steigenden BOOL IK220PositionRef2 (USHORT Axis, double*pData, und fallenden Flanke der LONG* pPeriod, Referenzmarke USHORT* pIntpol) ermitteln Status IK 220 lesen BOOL IK220Status (USHORT Axis, ULONG* pStatus) Status der DLL- BOOL IK220DllStatus (ULONG* pDLLStatus, Funktionen lesen ULONG* pDLLInfo)
  • Seite 30 Treiber-Software für WINDOWS Funktion Kurzreferenz Prüfsumme der Para- BOOL IK220ChkSumPar (USHORT Axis, meter lesen USHORT* pChkSum) Prüfsumme der Firm- BOOL IK220ChkSumPrg (USHORT Axis, ware lesen USHORT* pChkSum1, USHORT* pChkSum2) Parameter schreiben BOOL IK220WritePar (USHORT Axis, USHORT ParNum, ULONG ParVal) Parameter lesen BOOL IK220ReadPar (USHORT Axis, USHORT ParNum,...
  • Seite 31 Treiber-Software für WINDOWS Funktion Kurzreferenz Wert aus Speicher- BOOL IK220ReadMemEn(USHORT Axis, bereich des EnDat- USHORT Range, Gebers lesen USHORT MemAdr, USHORT* pMemData, USHORT* pStatus) Wert in Speicherbereich BOOL IK220WriteMemEn(USHORT Axis, des EnDat-Gebers USHORT Range, schreiben USHORT MemAdr, USHORT MemData, USHORT* pStatus) Absoluten Zählerwert BOOL IK220ReadSSI (USHORT Axis,...
  • Seite 32 USHORT Mode) Inkremental-Signale Folgende Funktionen werden von der Treiber-Software benutzt. In Anwendungs-Programmen sollten sie nicht verwendet werden. Funktion Kurzreferenz IK 220-Register lesen BOOL IK220InputW (USHORT Axis, USHORT Adr, (16 Bit) USHORT* pData) IK 220-Register lesen BOOL IK220InputL (USHORT Axis, USHORT Adr,...
  • Seite 33: Referenz Der Ddl-Funktionen

    Prototyp: BOOL IK220Find (ULONG* pBuffer16); pBuffer16: Zeiger auf 16 Langworte (16*4 Byte) IK220Init Lädt die Firmware in die IK 220 und startet sie. Muss für jede Achse aufgerufen werden bevor weitere Funktionen benutzt werden können! Prototyp: BOOL IK220Init (USHORT Axis);...
  • Seite 34: Ik220Version

    Treiber-Software für WINDOWS IK220Version Liest die Programm-Versionen der IK 220, des NT Device Treibers und der DLL. Die Programm-Versionen werden als ASCII-Zeichen abgelegt. Es muss jeweils Platz für mindestens 20 Zeichen reserviert werden. Die Zeichenketten werden mit einem Null-Byte abgeschlossen.
  • Seite 35: Ik220Latchint

    Treiber-Software für WINDOWS IK220LatchInt Erzeugt ein Signal mit dem die Zählerwerte beider Achsen einer IK 220 synchron in Latch 0 gespeichert werden. Muss zuerst über Parameter 14 freigegeben werden. Prototyp: BOOL IK220LatchInt (USHORT Card); Card: Nummer der Karte (0 bis 7) IK220LatchExt Erzeugt einen Signal mit dem die Zählerwerte mehrerer IK 220...
  • Seite 36: Ik220Latchref

    Treiber-Software für WINDOWS IK220LatchRef Mit der nächsten Referenzmarke wird der Zählerwert im Register 2 gespeichert. Der gespeicherte Wert ist ohne Interpolation und kann mit IKGet32 bzw. IKGet48 ausgelesen werden. Prototyp: BOOL IK220LatchRef (USHORT Axis); Axis: Nummer der Achse (0 bis 15) IK220Latched Stellt fest ob der Zählerwert gespeichert wurde.
  • Seite 37: Ik220Set

    Treiber-Software für WINDOWS IK220Set Setzt den Positionswert auf den angegebenen Wert. Benutzt Register 0 um die aktuelle Position zu ermitteln und berechnet daraus den Presetwert. Die Funktionen IK220Read48, IK220Get48, IK220ReadEnInc, IK220ReadEnIncCont, IK220ReadSsilnc, IK220GetRam und IK220BurstRam liefern dann inkrementale Positionswerte die sich auf den Presetwert beziehen (siehe IK220SetPreset und IK220GetPreset).
  • Seite 38: Ik220Read48

    Treiber-Software für WINDOWS IK220Read48 Liefert den 48-Bit-Zählerwert. Prototyp: BOOL IK220Read48 (USHORT Axis, USHORT Latch, double* pData); Axis: Nummer der Achse (0 bis 15) Latch: 0 = Auslesen aus Register 0 1 = Auslesen aus Register 1 pData: Zeiger auf Variable in welcher der Zählerwert abgelegt wird.
  • Seite 39: Ik220Cntstatus

    Treiber-Software für WINDOWS IK220CntStatus Liefert zusätzliche Informationen über den letzten Zählerwert- Abruf des entsprechenden Registers. Prototyp: BOOL IK220CntStatus (USHORT Axis, USHORT Latch, USHORT* pRefSta, SHORT* pKorr00, SHORT* pKorr90, SHORT* pNKorr00, SHORT* pNKorr90, USHORT* pSamCnt); Axis: Nummer der Achse (0 bis 15) Latch: 0 = Zähler-Register 0 auslesen 1 = Zähler-Register 1 auslesen...
  • Seite 40: Ik220Waitref

    Flanke des Referenzimpuls gewartet und eben- falls der Positionswert gespeichert. Die gespeicherten Werte entsprechen der Position der steigenden und fallenden Flanke der Referenzmarke (siehe Technische Daten IK 220). Wenn keine Timeout-Zeit definiert wurde wartet die Funktion bis ein Referenzimpuls erkannt wird (siehe IK220SetTimeOut). Ist der...
  • Seite 41: Ik220Status

    Flanke abgelegt wird. pIntpol2: Zeiger auf Variable in welcher der Interplations- wert der fallenden Flanke abgelegt wird. IK220Status Liefert den Status der IK 220 zurück. Prototyp: BOOL IK220Status (USHORT Axis, ULONG* pData); Axis: Nummer der Achse (0 bis 15)
  • Seite 42: Ik220Dllstatus

    Zeiger auf Variable in welcher interne Status- Informationen abgelegt werden. Der DLL-Status hat folgende Bedeutung: Bitnummer Bedeutung Fehlermeldung von IK 220 Timeout-Fehler in DLL-Funktion Falsche Befehls-Rückmeldung von IK 220 4 bis 7 8 bis 11 12 bis 15 16 bis 19 Bereichsüberschreitung...
  • Seite 43: Ik220Refstatus

    12 bis 15 16 bis 19 20 bis 23 24 bis 27 28 bis 31 IK220RefStatus Liefert den detaillierten REF-Status der IK 220 zurück. Prototyp: BOOL IK220RefStatus (USHORT Axis, LONG* pRef1, LONG* pRef2, LONG* pDiff, Long* pCode, USHORT* pFlag); Axis:...
  • Seite 44: Ik220Signalstatus

    0,44 V Amplitude normal Amplitude zu groß 16,25 µA 1,40 V IK220GetCorrA Liefert die angeglichenen Korrekturwerte der IK 220 zurück. Die Ermittlung von Korrekturwerten muss vorher über Parameter 9 freigegeben werden. Prototyp: BOOL IK220GetCorrA (USHORT Axis, SHORT* pOfs0, SHORT* pOfs90,...
  • Seite 45: Ik220Getcorrb

    Zeiger auf Variable in welcher das Flag 2 abgelegt wird. IK220GetCorrB Liefert die berechneten Korrekturwerte der IK 220 zurück. Die Ermittlung von Korrekturwerten muss vorher über Parameter 9 freigegeben werden. Prototyp: BOOL IK220GetCorrB (USHORT Axis, SHORT* pOfs0, SHORT* pOfs90,...
  • Seite 46: Ik220Octstatus

    Nummer der Achse (0 bis 15) pChkSum: Zeiger auf Variable in welcher die aktuelle Prüfsumme der Parameter abgelegt wird. IK220ChkSumPrg Liefert die Prüfsumme der IK 220 Firmware zurück. Prototyp: BOOL IK220ChkSumPrg (USHORT Axis, USHORT* pChkSum1, USHORT* pChkSum2); Axis: Nummer der Achse (0 bis 15) pChkSum1: Zeiger auf Variable in welcher die Ist-Prüfsumme...
  • Seite 47: Ik220Writepar

    USHORT ParNum, ULONG ParVal); Axis: Nummer der Achse (0 bis 15) ParNum: Parameter-Nummer ParVal: Parameter-Wert IK220ReadPar Liefert den Wert eines Parameter der IK 220. Prototyp: BOOL IK220ReadPar (USHORT Axis, USHORT ParNum, ULONG* pParVal); Axis: Nummer der Achse (0 bis 15) ParNum: Parameter-Nummer...
  • Seite 48: Ik220Configen

    Treiber-Software für WINDOWS IK220ConfigEn Liest die Konfiguration des angeschlossenen EnDat-Geber aus. Die genaue Bedeutung der einzelnen Werte ist der EnDat- Beschreibung zu entnehmen. Mit der Funktion IK220ReadMemEn können die Parameter des Messgerätherstellers ausgelesen werden um daraus weitere Informationen über das Messgerät zu erhalten. Muss aufgerufen werden bevor weitere EnDat-Funktionen benutzt werden können! Prototyp:...
  • Seite 49: Ik220Readen

    Treiber-Software für WINDOWS pType: Zeiger auf Variable in welcher der Messgerättyp abgelegt wird. pPeriod: Zeiger auf Variable in welcher die Signalperiode bzw. die Anzahl der Striche pro Umdrehung der inkremental Signale abgelegt wird. pStep: Zeiger auf Variable in welcher der Messschritt bzw.
  • Seite 50: Ik220Readeninc

    Treiber-Software für WINDOWS IK220ReadEnInc Liefert den absoluten und inkrementalen Zählerwert des angeschlossenen EnDat-Geber zurück. Der EnDat-Zählerwert hat die gleiche Wertigkeit wie der Inkremental-Wert, d.h. 1,0 entspricht einer Signalperiode! Prototyp: BOOL IK220ReadEnInc (USHORT Axis, USHORT Latch, USHORT* pStatus, double* pDataEn, USHORT* pAlarm, double* pDataInc);...
  • Seite 51: Ik220Readeninccont

    Treiber-Software für WINDOWS Mode: 0 = Auslesen mit durchlaufendem Takt beenden 1 = Auslesen mit durchlaufendem Takt mit CRC- Prüfung starten 2 = Auslesen mit durchlaufendem Takt ohne CRC- Prüfung starten pStatus: 0 = o.k. 1 = Geber antwortet nicht bzw. kein Geber angeschlossen IK220ReadEnIncCont Liefert den absoluten und inkrementalen Positionswert des...
  • Seite 52: Ik220Alarmen

    Treiber-Software für WINDOWS IK220AlarmEn Liefert das Alarmwort des EnDat-Geber und löscht alle aktiven Alarme. Prototyp: BOOL IK220AlarmEn (USHORT Axis, USHORT* pStatus, USHORT* pAlarm); Axis: Nummer der Achse (0 bis 15). pStatus: Zeiger auf Variable in welcher der Status abgelegt wird. Low-Byte: 0 = o.k.
  • Seite 53: Ik220Readmemen

    Treiber-Software für WINDOWS IK220ReadMemEn Liest Werte aus dem Speicherbereich des EnDat-Gebers. Prototyp: BOOL IK220ReadMemEn (USHORT Axis, USHORT Range, USHORT MemAdr, USHORT* pMemData, USHORT* pStatus) Axis: Nummer der Achse (0 bis 15) Range: Auswahl Speicherbereich 0: Betriebszustand 1: Parameter des Messgerät-Herstellers 2: Betriebsparameter 3: Parameter des OEM 4: Korrekturwerte...
  • Seite 54: Ik220Readssi

    Treiber-Software für WINDOWS pStatus: Zeiger auf Variable in welcher der EnDat-Status abgelegt wird. 0 = o.k. 1 = Geber antwortet nicht bzw. kein Geber angeschlossen 2 = Übertragungsfehler 3 = Fehler Mode-Echo 4 = Fehler CRC-Summe 5 = Fehler Daten-Echo 6 = Fehler MRS-Code- / Adress-Echo IK220ReadSSI Liefert den absoluten Zählerwert des angeschlossenen SSI-...
  • Seite 55: Ik220Settimer

    0 = Timer-Signale werden nicht ausgegeben 1 = Timer-Signale werden ausgegeben IK220ModeRam Gespeicherte Zählerwerte können in einem Speicher auf der IK 220 abgelegt werden. Die abgelegten Werte können dann mit den Funktionen IK220GetRam bzw. IK220BurstRam ausgelesen werden. Prototyp: BOOL IK220ModeRam (USHORT Axis, USHORT Mode);...
  • Seite 56: Ik220Resetram

    Treiber-Software für WINDOWS 3 = Eingespeicherte Zählerwerte aus Register 0 werden abgelegt bis maximale Anzahl erreicht ist (Single shot) 4 = Eingespeicherte Zählerwerte aus Register 1 werden abgelegt bis maximale Anzahl erreicht ist (Single shot) IK220ResetRam Der Schreib- und Lesezeiger des RAM-Buffers wird auf 0 gesetzt.
  • Seite 57: Ik220Getsig

    Treiber-Software für WINDOWS pStatus: Status des RAM-Buffers. Bit0=1 : Buffer-Überlauf Bit1=1 : kein Wert im Buffer Bit2=1 : letzten Wert aus Buffer gelesen Bit15=1: Fehler beim Puffer auflesen IK220GetSig Ein im RAM-Buffer abgelegtes Amplituden-Wertepaar wird ausgelesen. Nach dem Lesen wird der Lesezeiger erhöht. Prototyp: BOOL IK220GetSig (USHORT Axis, USHORT* pPeriod, SHORT* pAmp0,...
  • Seite 58: Ik220Led

    Bit0=1 : Buffer-Überlauf Bit1=1 : kein Wert im Buffer Bit2=1 : letzten Wert aus Buffer gelesen Bit15=1: Fehler beim Buffer auslesen IK220Led Legt die Funktion der Achs-LED auf der IK 220 fest. Prototyp: BOOL IK220Led (USHORT Axis, USHORT Mode); Axis:...
  • Seite 59: Ik220Refeval

    Treiber-Software für WINDOWS IK220RefEval Legt die Art der Auswertung des Referenzmarken-Signals fest. Prototyp: BOOL IK220RefEval (USHORT Axis, USHORT Mode); Axis: Nummer der Achse Mode: 0 = REF-Signal mit Inkremental-Signal maskiert 1 = REF-Signal nicht mit Inkremental-Signal maskiert. IK220SetBw Legt die Eingangsfrequenz für die sinusförmigen Inkremental- Signale fest.
  • Seite 60: Ik220Output

    Adr: Adresse des Registers (0 bis 15 bzw. 0 bis 0x0F) Data: Wert der in das Register geschrieben wird IK220RamRead Aus dem RAM der IK 220 wird ein 16-Bit-Wert gelesen. Prototyp: BOOL IK220RamRead (USHORT Axis, USHORT Adr, USHORT* pData) Axis:...
  • Seite 61: Ik220Setendata

    Treiber-Software für WINDOWS IK220SetEnData Setzt die Daten-Leitung der EnDat-Schnittstelle. Prototyp: BOOL IK220SetEnData (USHORT Axis, BOOL State, USHORT* pStatus) Axis: Nummer der Achse (0 bis 15) State: False (=0): Daten-Leitung auf Low-Pegel setzen True (≠0): Daten-Leitung auf High-Pegel setzen pStatus: 0 = o.k. 1 = Fehler IK220ReadEnData Liest den Zustand der Datenleitung auf der EnDat-Schnittstelle.
  • Seite 62: Technische Daten

    Kabellänge: max. 10 m Externe Abruf-Signale Baugruppe mit zwei Sub-D- (Option) Anschlüsse (9-polig, Sift) 2 Eingänge TTL-Pegel 1 Ausgang TTL-Pegel Messgerät-Ausgänge sinusfömige Stromsignale (11 µA (Option) Baugruppe mit zwei Sub-D- Anschlüsse (9-polig, Stift) Signal-Unterteilung bis zu 4096fach Mit Original-HEIDENHAIN-Kabeln, Versorgungsspannung des Messgerätes beachten!
  • Seite 63 Software Treiber-Software und für Windows NT/95/98/2000/XP Demonstrations- Linux Kernel 2.4 Programm LabView 7.1 in Visual C++, Visual Basic und Borland Delphi Der CD-Inhalt sowie Treiber für weitere Betriebssysteme (z. B. Windows Vista, Windows 7) befinden sich im Download-Bereich unter www.heidenhain.de.
  • Seite 64: Content

    Connections X8, X9 for external inputs/outputs .... 77 Latching measured values via external inputs ....79 Latch outputs -Lout ............79 Latching the measured values of more than one IK 220 . 80 Flow chart: Saving measured values ......81 Operating Parameters ....................82 Driver Software for WINDOWS ................
  • Seite 65 Content Examples for LabView ........... 88 Example for Linux ............88 Calling the DLL functions from an application program ..89 Microsoft Visual C++ ............. 89 Microsoft Visual C++ ............. 89 Borland Delphi ............... 89 Overview of DLL functions ............. 89 Reference of DDL functions ...........
  • Seite 66 Content IK220ChkSumPar ............108 IK220ChkSumPrg ............108 IK220WritePar ............. 109 IK220ReadPar .............. 109 IK220ResetEn .............. 109 IK220ConfigEn ............. 110 IK220ReadEn ............... 111 IK220ReadEnInc ............112 IK22ModeEnCont ............112 IK220ReadEnIncCont ........... 113 IK220AlarmEn .............. 114 IK220WarnEn ............... 114 IK220ReadMemEn ............115 IK220WriteMemEn ............
  • Seite 67: Items Supplied

    Items Supplied Items Supplied IK 220 Counter Card for PCs Id. Nr. 337 481-01 Programming examples, driver software and User's Manual. Accessories • IK external inputs/outputs Id.-Nr. 340 253-01 • IK external inputs/outputs Id.-Nr. 315 650-02 • Adapter cable with connector for...
  • Seite 68 Items Supplied Depending on the input circuit of the subsequent electronics Adapter 340 252-01 60 m max. EnDat/SSI: 10 m max. 310 199-xx EnDat/SSI 332 115-xx 309 783-xx (max. 9 m) 11 µA : 60 m max. 11 µA IK external inputs/outputs 340 253-01...
  • Seite 69: Important Information

    Important Information Important Information The EnDat interface offers the possibility of storing machine or system-dependent data in the customer memory area (e.g. datum shift, OEM data, ...). These data can contain safety-relevant information. Incorrect handling of these data can result in damage to the machine or personnel. For information on the EnDat interface and the encoder, please refer to the EnDat specification, the mounting instructions of the encoder and the product description (e.g.
  • Seite 70: Technical Description Of The Ik 220

    Technical Description of the IK 220 Technical Description of the IK 220 The IK 220 counter card for PCs is plugged directly into an expansion slot of a personal computer with PCI interface. The card can support two HEIDENHAIN encoders with sinusoidal current signals (11 µA...
  • Seite 71: Time To Access Measured Values

    Technical Description of the IK 220 The IK 220's interpolation electronics subdivides the signal period of the input signal up to 4096-fold. The 44-bit wide measured value is formed from the interpolation value (12 bits) and the value of the period counter (32 bits).
  • Seite 72: Hardware

    Hardware Hardware Specification of the PCI bus The IK 220 can be installed in all PCs with PCI bus. Specification PCI local bus Spec. Rev. 2.1 Size Approx. 100 * 190 mm Connector PCI 5 V / 32-bit (2*60) connecting...
  • Seite 73: Encoder Inputs

    Hardware Encoder inputs The IK 220 supports encoders with the following interfaces: • 11 µA • 1 V • EnDat 2.1 • SSI The power supply for the encoders (typ. 5.12 V) is generated from the +12 V of the PCI bus. Max. 800 mA of the +5 V power supply for the encoders may be used for both axes.
  • Seite 74: Specification Of The 1 V Pp Interface

    Sinusoidal voltage signals (1 Vpp) are available as a complement. Cable length: max. 10 m max. 50 m With genuine HEIDENHAIN cables. Ensure that the power supply limits for the encoder are not exceeded.
  • Seite 75: Specification Of The Ssi Interface

    Hardware Specification of the SSI interface The SSI interface of the absolute encoders is bidirectional. It supplies the absolute position values in synchrony with a clock pulse from the subsequent electronics. Sinusoidal voltage signals (1 Vpp) are available as a complement. Cable length: max.
  • Seite 76: Encoder Outputs

    Hardware Encoder outputs The IK 220 also feeds the encoder signals from inputs X1 and X2 as sinusoidal current signals (11 µA ) to two 10-pin MICROMATCH connectors (female) on the PCB. An additional cable assembly with PC slot cover (Id. Nr. 340 252-01) can be used to lead these connections out to 9-pin D-sub connectors.
  • Seite 77: Encoder Signal Compensation

    Hardware Encoder outputs (ld. Nr. 340 252-01) D-sub connection with male contacts (9-pin) Pin No. Signal 0 V (U Not connected Not connected Housing External shield Encoder signal compensation Encoder signals can be compensated automatically — even online. Corresponding functions are included in the software provided with the product.
  • Seite 78 Hardware Connections X11 and X21 for external inputs/outputs (option) D-sub connection with male contacts (9-pin) on PC slot cover For external inputs/outputs, an optional assembly is available consisting of a slot cover with two D-sub connections, a noise- suppression PCB, and two ribbon cables for connection to 10-pin MICROMATCH connectors on the PCB.
  • Seite 79: Latching Measured Values Via External Inputs

    Hardware Latching measured values via external inputs The IK 220 has two external inputs for latching and saving measured values. The inputs -L0 and -L1 are low-active; they are kept at high level by a 1.47-kΩ internal pull-up resistor. They can be connected to TTL components.
  • Seite 80: Latching The Measured Values Of More Than One Ik 220

    Hardware Latching the measured values of more than one IK 220 For the measured values of all axes of more than one IK to be saved simultaneously, the output signal -Lout 2 must be led to all corresponding encoder inputs (-L0 or -L1), even to the input from which -Lout 2 is led.
  • Seite 81: Flow Chart: Saving Measured Values

    Hardware Flow chart: Saving measured values Latch 0 Par. 14 Bit 0 Software latch 0 -L0 X11/2 & & IK220ModeTimer & Par. 14 Timer Bit 1 -Lout 1 X11/1 IK220LatchInt Latch 1 Par. 14 Bit 2 & Software latch 1 -L1 X11/3 Axis 0 Axis 1...
  • Seite 82: Operating Parameters

    Operating Parameters Operating Parameters The IK 220 requires operating parameters to properly execute the desired functions. Predetermined default values are set when downloading the supplied operating software. The default values are shown in bold typeface in the following table. You...
  • Seite 83 Operating Parameters Param. For- Meaning Number 16 bits 0 to 12: Number of interpolation bits Default value 12 The interpolation value (16-bit width, max. 12 significant bits, left-aligned) is rounded off to the number of set bits. 16 bits 0: Compensation for position value off 1: Compensation for position value on 16 bits 0: Acquisition of compensation value off 1: Acquisition of compensation value on...
  • Seite 84 Operating Parameters Parameter 11: Interval between two latches per timer. The following values can be set directly by the timer of the IK 220: Parameter Time Parameter Time value interval value interval 100 µs 1000 µs 150 µs 1100 µs 200 µs...
  • Seite 85: Driver Software For Windows

    Driver Software for WINDOWS Driver Software for WINDOWS General information The driver software for the IK 220 enables applications to access the IK 220 from Windows 95/98, Windows NT/2000/XP, Linux and LabView. For Windows, access is made through a Dynamic Link Library (DLL) and a Windows 95/98, Windows NT or Windows 2000/XP device driver.
  • Seite 86: Installing The Drivers And Dlls Under Windows 2000 And Windows Xp

    Device driver for Windows 2000/XP (IK220DRV.SYS) The Windows 2000/XP driver is a WDM driver for Windows 2000 and XP. It enables access to the IK 220. The driver supports up to eight IK 220s. To install the driver, simply select the setup information file (IK220.inf) in the "Disk4"...
  • Seite 87: Device Driver For Windows 95/98 (Ik220Vxd.vxd)

    Device driver for Windows 95/98 (IK220VXD.VXD) The Windows 95/98 device driver is a virtual device driver for Windows 95/98 that supports access to up to eight IK 220. The installation of the device driver is taken care of by the "Install.Bat"...
  • Seite 88: Examples

    , EnDat, SSI) and set the encoder parameters under ”Parameters/Encoder.” Examples for LabView In the subdirectory ”\Disk5” of the "IK 220" directory on the CD you will find example applications in LabView. Example for Linux In the subdirectory ”\Disk6” of the "IK 220" directory on the CD you will find a simple console application: Compile and start ik220_read48.
  • Seite 89: Calling The Dll Functions From An Application Program

    ”\Include\DLLFunc.pas” to enable the DLL functions to be used with Borland Delphi. Overview of DLL functions Function Short reference Determine installed BOOL IK220Find (ULONG* pBuffer16) IK 220 Initialize IK 220 BOOL IK220Init (USHORT Axis) Read program versions BOOL IK220Version (USHORT Axis, char* pVersCard, char* pVersDrv, char* pVersDll)
  • Seite 90 Driver Software for WINDOWS Function Short reference Delete counter with BOOL IK220ResetRef (USHORT Axis) next reference mark Start counter with next BOOL IK220StartRef (USHORT Axis) reference mark Stop counter with next BOOL IK220StopRef (USHORT Axis) reference mark Save counter with next BOOL IK220LatchRef (USHORT Axis) reference mark...
  • Seite 91 Find position of the BOOL IK220PositionRef2 (USHORT Axis, double*pData, rising and falling edge of LONG* pPeriod, the reference mark USHORT* pIntpol) Read status of IK 220 BOOL IK220Status (USHORT Axis, ULONG* pStatus) Read status of DLL BOOL IK220DllStatus (ULONG* pDLLStatus,...
  • Seite 92 Driver Software for WINDOWS Function Short reference Read checksum of BOOL IK220ChkSumPrg (USHORT Axis, firmware USHORT* pChkSum1, USHORT* pChkSum2) Write parameters BOOL IK220WritePar (USHORT Axis, USHORT ParNum, ULONG ParVal) Read parameters BOOL IK220ReadPar (USHORT Axis, USHORT ParNum, ULONG* pParVal) Reset EnDat encoder BOOL IK220ResetEn (USHORT Axis, USHORT* pStatus)
  • Seite 93 Driver Software for WINDOWS Function Short reference Read value from BOOL IK220ReadMemEn (USHORT Axis, memory area of the USHORT Range, EnDat encoder USHORT MemAdr, USHORT* pMemData, USHORT* pStatus) Write value from BOOL IK220WriteMemEn (USHORT Axis, memory area of the USHORT Range, EnDat encoder USHORT MemAdr, USHORT MemData,...
  • Seite 94 USHORT Mode) signals The following functions are used by the driver software. They should not be used in application programs. Function Short reference Read IK 220 register BOOL IK220InputW (USHORT Axis, USHORT Adr, (16 bits) USHORT* pData) Read IK 220 register...
  • Seite 95: Reference Of Ddl Functions

    Pointer to string (terminated with 0x00) IK220Find Supplies the address of each axis of the installed IK 220. Can be used to determine the number of installed IK 220s. For every IK 220, two addresses are saved at the corresponding position in pBuffer16.
  • Seite 96: Ik220Version

    Driver Software for WINDOWS IK220Version Reads the program versions of the IK 220, the NT device driver and the DLL. The program versions are saved as ASCII characters. There must be room reserved for at least 20 characters. The character strings are concluded with a zero byte.
  • Seite 97: Ik220Latchint

    Driver Software for WINDOWS IK220LatchInt Generates a signal with which the counter values of both axes of an IK 220 are saved synchronously in Latch 0. Must first be enabled through parameter 14. Prototype: BOOL IK220LatchInt (USHORT Card); Card: Number of the card (0 to 7)
  • Seite 98: Ik220Latchref

    Driver Software for WINDOWS IK220LatchRef With the next reference mark, the counter value is saved in register 2. The saved value is without interpolation and can be output with IKGet32 or IKGet48. Prototype: BOOL IK220LatchRef (USHORT Axis); Axis: Number of the axis (0 to 15) IK220Latched Determines whether the counter value was saved.
  • Seite 99: Ik220Set

    Driver Software for WINDOWS IK220Set Sets the position value to the indicated value. Uses Register 0 to determine the current position, and calculates the preset value from that. The IK220Read48, IK220Get48, IK220ReadEnInc, IK220ReadEnIncCont, IK220ReadSsiInc, IK220GetRam and IK220BurstRam functions then deliver incremental position values which refer to the preset value (see IK220SetPreset and IK220GetPreset).
  • Seite 100: Ik220Read48

    Driver Software for WINDOWS IK220Read48 Supplies the 48-bit counter value. Prototype: BOOL IK220Read48 (USHORT Axis, USHORT Latch, double* pData); Axis: Number of the axis (0 to 15) Latch: 0 = Output from register 0 1 = Output from register 1 pData: Pointer to a variable in which the counter value is saved.
  • Seite 101: Ik220Cntstatus

    Driver Software for WINDOWS IK220CntStatus Supplies additional information on the last counter value of the corresponding register. Prototype: BOOL IK220CntStatus (USHORT Axis, USHORT Latch, USHORT* pRefSta, SHORT* pKorr00, SHORT* pKorr90, SHORT* pNKorr00, SHORT* pNKorr90, USHORT* pSamCnt); Axis: Number of the axis (0 to 15) Latch: 0 = Output counter register 0 1 = Output counter register 1...
  • Seite 102: Ik220Waitref

    The saved values correspond to the position of the rising and falling edges of the reference mark (see IK 220 Specifications). If no timeout time was defined, the function waits until a reference pulse is detected (see IK220SetTimeOut).
  • Seite 103: Ik220Status

    Pointer to a variable in which the interpolation value of the falling edge is saved IK220Status Reports the status of the IK 220. Prototype: BOOL IK220Status (USHORT Axis, ULONG* pData); Axis: Number of the axis (0 to 15) pData: Pointer to a variable in which the status is saved.
  • Seite 104: Ik220Dllstatus

    The DLL status has the following meaning: Bit number Meaning Error message from IK 220 Timeout error in DLL function False command acknowledgment from IK 220 4 to 7 8 to 11 12 to 15 16 to 19...
  • Seite 105: Ik220Refstatus

    16 to 19 20 to 23 24 to 27 28 to 31 IK220RefStatus Reports the detailed REF status of the IK 220. Prototype: BOOL IK220RefStatus (USHORT Axis, LONG* pRef1, LONG* pRef2, LONG* pDiff, Long* pCode, USHORT* pFlag); Axis: Number of the axis (0 to 15)
  • Seite 106: Ik220Signalstatus

    Amplitude normal Amplitude too high 16.25 µA 1.40 V IK220GetCorrA Reports the adjusted compensation values of the IK 220. Ascertainment of the compensation must first have been enabled by parameter 9. Prototype: BOOL IK220GetCorrA (USHORT Axis, SHORT* pOfs0, SHORT* pOfs90,...
  • Seite 107: Ik220Getcorrb

    Pointer to a variable in which flag 1 is saved pFlag2: Pointer to a variable in which flag 2 is saved IK220GetCorrB Reports the calculated compensation values of the IK 220. Ascertainment of the compensation must first have been enabled by parameter 9. Prototype: BOOL IK220GetCorrB (USHORT Axis,...
  • Seite 108: Ik220Octstatus

    Pointer to a variable in which the momentary checksum of the parameters is saved IK220ChkSumPrg Reports the check sum of the IK 220 firmware. Prototype: BOOL IK220ChkSumPrg (USHORT Axis, USHORT* pChkSum1, USHORT* pChkSum2); Axis: Number of the axis (0 to 15)
  • Seite 109: Ik220Writepar

    Number of the axis (0 to 15) ParNum: Parameter number ParVal: Parameter value IK220ReadPar Supplies the value of an IK 220 parameter. Prototype: BOOL IK220ReadPar (USHORT Axis, USHORT ParNum, ULONG* pParVal); Axis: Number of the axis (0 to 15) ParNum:...
  • Seite 110: Ik220Configen

    Driver Software for WINDOWS IK220ConfigEn Reads the configuration of the connected EnDat encoder. The exact meaning of the individual value is described in the EnDat Description. With the IK220ReadMemEn function, the param- eters of the encoder manufacturer can be read out in order to receive further information on the encoder.
  • Seite 111: Ik220Readen

    Driver Software for WINDOWS pType: Pointer to a variable in which the encoder type is saved. pPeriod: Pointer to a variable in which the signal period of the incremental signals or the number of lines per revolution is saved. pStep: Pointer to a variable in which the measuring step of the EnDat position value or the number of measuring steps per revolution is saved.
  • Seite 112: Ik220Readeninc

    Driver Software for WINDOWS IK220ReadEnInc Reports the absolute and incremental counter value of the connected EnDat encoder. The EnDat counter value has the same significance as the incremental value, i.e., 1.0 represents one signal period! Prototype: BOOL IK220ReadEnInc (USHORT Axis, USHORT Latch, USHORT* pStatus, double* pDataEn, USHORT* pAlarm, double* pDataInc);...
  • Seite 113: Ik220Readeninccont

    Driver Software for WINDOWS Mode: 0 = End readout with continuous clock 1 = Start readout with CRC check and continuous clock 2 = Start readout with continuous clock and without CRC check. pStatus: 0 = OK 1 = Encoder does not answer or no encoder connected IK220ReadEnIncCont Returns the absolute and incremental position value of the...
  • Seite 114: Ik220Alarmen

    Driver Software for WINDOWS IK220AlarmEn Supplies the alarm word of the EnDat encoder and cancels all active alarms. Prototype: BOOL IK220AlarmEn (USHORT Axis, USHORT* pStatus, USHORT* pAlarm); Axis: Number of the axis (0 to 15) pStatus: Pointer to a variable in which the status is saved. Low byte: 0 = OK 1 = Encoder does not answer or no encoder connected...
  • Seite 115: Ik220Readmemen

    Driver Software for WINDOWS IK220ReadMemEn Reads values from the memory range of the EnDat encoder. Prototype: BOOL IK220ReadMemEn (USHORT Axis, USHORT Range, USHORT MemAdr, USHORT* pMemData, USHORT* pStatus) Axis: Number of the axis (0 to 15) Range: Selection of memory area 0: Operating status 1: Parameters of the encoder manufacturer 2: Operating parameters...
  • Seite 116: Ik220Readssi

    Driver Software for WINDOWS pStatus: Pointer to a variable in which the EnDat status is saved. 0 = OK 1 = Encoder does not answer or no encoder connected 2 = Transmission error 3 = Error mode echo 4 = Error CRC sum 5 = Error data echo 6 = Error MRS code / address echo IK220ReadSSI...
  • Seite 117: Ik220Settimer

    1 = Timer signals are output IK220ModeRam Stored counter values can be transferred to a buffer memory on the IK 220. The values saved can then be read out with IK220GetRam or IK220BurstRam. Prototype: BOOL IK220ModeRam (USHORT Axis, USHORT Mode);...
  • Seite 118: Ik220Resetram

    Driver Software for WINDOWS 4 = Latched counter values from register 1 are transferred until the max. number is reached (single shot) IK220ResetRam The write and read pointer of the RAM buffer is set to 0. All of the values in the RAM buffer are canceled. Prototype: BOOL IK220ResetRam (USHORT Axis);...
  • Seite 119: Ik220Getsig

    Driver Software for WINDOWS pStatus: Status of the RAM buffer. Bit 0=1: Buffer overflow Bit 1=1: No value in the buffer Bit 2=1: Last value is read from the buffer Bit 15=1: Error while reading buffer IK220GetSig An amplitude-value pair stored in the RAM buffer is output. The read counter is increased after reading.
  • Seite 120: Ik220Led

    Bit 1=1: No value in the buffer Bit 2=1: Last value is read from the buffer Bit 15=1: Error while reading buffer IK220Led Defines the function of the axis LED on the IK 220. Prototype: BOOL IK220Led (USHORT Axis, USHORT Mode); Axis:...
  • Seite 121: Ik220Refeval

    Driver Software for WINDOWS IK220RefEval Defines the type of evaluation of the reference-mark signal. Prototype: BOOL IK220RefEval (USHORT Axis, USHORT Mode); Axis: Number of the axis Mode: 0 = REF signal masked with incremental signals 1 = REF signal not masked with incremental signals IK220SetBw Defines the input frequency for the sinusoidal incremental...
  • Seite 122: Ik220Output

    Address of the registers (0 to 15 or 0 to 0x0F) Data: Value that is written to the register IK220RamRead Reads a 16-bit value from the RAM of the IK 220. Prototype: BOOL IK220RamRead (USHORT Axis, USHORT Adr, USHORT* pData) Axis:...
  • Seite 123: Ik220Setendata

    Driver Software for WINDOWS IK220SetEnData Sets the data line of the EnDat interface. Prototype: BOOL IK220SetEnData (USHORT Axis, BOOL State, USHORT* pStatus) Axis: Number of the axis (0 to 15) State: False (=0): Set data line to low level. True (≠0): Set data line to high level. pStatus: 0 = OK 1 = Error...
  • Seite 124: Specifications

    2 inputs TTL levels 1 output TTL levels Encoder outputs Sinusoidal current signals (11 µA (Option) Assembly with two D-sub connections (9-pin, male) Signal subdivision Up to 4096-fold With genuine HEIDENHAIN cables, please note the supply voltage for the encoder.
  • Seite 125 Linux Kernel 2.4 program LabView 7.1 in Visual C++, Visual Basic and Borland Delphi The content of the CD as well as the drivers for other operating systems (e. g. Windows Vista, Windows 7) are available in the download area at www.heidenhain.de.
  • Seite 126 785 183-90 · Ver00 · 15 · 5/2011 · H · Printed in Germany...