5/2011Benutzer-HandbuchUser's ManualIK 220IK 220PC-Zählerkarte zum Anschluss von HEIDENHAIN-MessgerätenPC Counter Card for HEIDENHAIN encoders
Hardware 10 Hardware Spezifikation des PCI-Bus Die IK 220 kann in alle PCs mit PCI-Bus eingesetzt werden. Spezifikation PCI Local Bus Specificati
Driver Software for WINDOWS 100 IK220Read48 Supplies the 48-bit counter value. Prototype: BOOL IK220Read48 (USHORT Axis, USHORT Latch, double* pData
Driver Software for WINDOWS 101IK220CntStatus Supplies additional information on the last counter value of the corresponding register. Prototype: B
Driver Software for WINDOWS 102 IK220WaitRef Waits until all active REF functions are ended (Reset, Start or Stop with REF or REF traverse). If no tim
Driver Software for WINDOWS 103pData2: Pointer to a variable in which the position value of the falling edge is saved pPeriod2: Pointer to a varia
Driver Software for WINDOWS 104 IK220DllStatus Reports the status of the DLL functions. Prototype: BOOL IK220DllStatus (ULONG* pDLLStatus, ULONG* pDLL
Driver Software for WINDOWS 105The DLL info has the following meaning: Bit number Meaning 0 Windows timer is not available 1 Windows timer is not
Driver Software for WINDOWS 106 IK220SignalStatus Reports the signal status of the IK 220. Prototype: BOOL IK220SignalStatus (USHORT Axis, USHO
Driver Software for WINDOWS 107pSym0: Pointer to a variable in which the symmetry of the 0° signal is saved pSym90: Pointer to a variable in which
Driver Software for WINDOWS 108 IK220OctStatus Reports the octant status of the IK 220. Prototype: BOOL IK220OctStatus (USHORT Axis, USHO
Driver Software for WINDOWS 109IK220WritePar Changes a parameter of the IK 220. Prototype: BOOL IK220WritePar (USHORT Axis, USHORT ParNum, ULONG P
Hardware 11Messgerät-Eingänge An die IK 220 können Messgeräte mit folgenden Schnittstellen angeschlossen werden: • 11 µASS • 1 VSS • EnDat 2.1 •
Driver Software for WINDOWS 110 IK220ConfigEn Reads the configuration of the connected EnDat encoder. The exact meaning of the individual value is des
Driver Software for WINDOWS 111pType: Pointer to a variable in which the encoder type is saved. pPeriod: Pointer to a variable in which the signal
Driver Software for WINDOWS 112 IK220ReadEnInc Reports the absolute and incremental counter value of the connected EnDat encoder. The EnDat counter va
Driver Software for WINDOWS 113Mode: 0 = End readout with continuous clock 1 = Start readout with CRC check and continuous clock 2 = Start readout
Driver Software for WINDOWS 114 IK220AlarmEn Supplies the alarm word of the EnDat encoder and cancels all active alarms. Prototype: BOOL IK220AlarmEn
Driver Software for WINDOWS 115IK220ReadMemEn Reads values from the memory range of the EnDat encoder. Prototype: BOOL IK220ReadMemEn (USHORT Axis,
Driver Software for WINDOWS 116 pStatus: Pointer to a variable in which the EnDat status is saved. 0 = OK 1 = Encoder does not answer or no encoder c
Driver Software for WINDOWS 117pDataSsi: Pointer to a variable in which the absolute counter value of the SSI encoder is saved pDataInc: Pointer t
Driver Software for WINDOWS 118 4 = Latched counter values from register 1 are transferred until the max. number is reached (single shot) IK220Reset
Driver Software for WINDOWS 119pStatus: Status of the RAM buffer. Bit 0=1: Buffer overflow Bit 1=1: No value in the buffer
Hardware 12 Spezifikation der 1 VSS-Schnittstelle Signalamplituden A, B (0°, 90°) R (Referenzmarke) 0,6 VSS bis 1,2 VSS 0,2 V bis 0,85 V Signalpeg
Driver Software for WINDOWS 120 pAmp90: Pointer to an array of variables in which the 90° amplitude values are saved. Space must be reserved for maxC
Driver Software for WINDOWS 121IK220RefEval Defines the type of evaluation of the reference-mark signal. Prototype: BOOL IK220RefEval (USHORT Axis,
Driver Software for WINDOWS 122 IK220Output Writes a 16-bit value to the given address of the axis. Prototype: BOOL IK220Output (USHORT Axis, USHORT
Driver Software for WINDOWS 123IK220SetEnData Sets the data line of the EnDat interface. Prototype: BOOL IK220SetEnData (USHORT Axis, BOOL State,
Specifications 124 Specifications Mechanical Data Dimensions Approx. 190 mm x 100 mm Operating temperature – 0° C to 55° C (32 °F to 131 °F) Storag
Specifications 125Adjustment of Adjustment of offset, phase and encoder signals amplitude by software — also online Data register for 48 bits, w
DR. JOHANNES HEIDENHAIN GmbHDr.-Johannes-Heidenhain-Straße 583301 Traunreut, Germany{ +49 8669 31-0| +49 8669 5061E-mail: [email protected]
Hardware 13Spezifikation der SSI-Schnittstelle Die SSI-Schnittstelle der absoluten Messgeräte ist unidirek-tional. Sie liefert die absoluten Positio
Hardware 14 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) a
Hardware 15Messgeräte-Ausgänge (Ident-Nummer 340 252-01) Sub-D-Anschluss mit Stifteinsatz (9-polig) Anschluss-Nr. Signal 1 I1- 2 0 V (UN) 3 I2-
Hardware 16 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
Hardware 17Abruf der Messwerte über externe Eingänge Die IK 220 hat zwei externe Eingänge zum Abrufen und Speichern der Messwerte. Die Eingänge -L0
Hardware 18 Messwerte von mehreren IK 220 abrufen Damit die Messwerte aller Achsen mehrerer IKs gleichzeitig ge-speichert werden, muss das Ausgangs-Si
Hardware 19Ablaufdiagramm: Speichern von Messwerten Latch 0OR&Software latch 0&Par. 14Bit 0TimerPar. 14Bit 1IK220ModeTimerIK220LatchInt -
Inhalt 2 Inhalt Inhalt ... 2
Betriebsparameter 20 Betriebsparameter Die IK 220 benötigt Betriebs-Parameter um die gewünschten Funktionen richtig ausführen zu können. Es sind Defau
Betriebsparameter 21 Param.NummerFor-mat Bedeutung 7 16 Bit 0 bis 12: Anzahl Interpolations-Bits Defaultwert 12 Der Interpolationswert (16 Bit br
Betriebsparameter 22 Parameter 11: Zeitintervall zwischen zwei Latches per Timer: Folgende Werte sind über die Timer der IK 220 direkt einstellbar:
Treiber-Software für WINDOWS 23Treiber-Software für WINDOWS Allgemeines Die Treiber-Software für die IK 220 ermöglicht es Anwendungen die IK 220 Zäh
Treiber-Software für WINDOWS 24 Installation des Treibers und der DLL unter Windows 2000 und XP • Nachdem Sie die IK 220 Karte in den Rechner gesteck
Treiber-Software für WINDOWS 25Device-Treiber für Windows 95/98 (IK220VXD.VXD) Der Windows 95/98 Device-Treiber ist ein virtueller Device-Treiber fü
Treiber-Software für WINDOWS 26 Beispiele Beispiel für Konsolen-Anwendung Im Verzeichnis „\Disk2\IK220Con\Release“ auf der CD im Verzeichniszweig &qu
Treiber-Software für WINDOWS 27Aufruf der DLL-Funktionen aus einem Anwenderprogramm Um die Funktionen der DLL nutzen zu können, müssen sie dem Anwen
Treiber-Software für WINDOWS 28 Funktion KurzreferenzSynchrones Zählerwert speichern extern BOOL IK220LatchExt (USHORT Card) Zähler löschen mit nächs
Treiber-Software für WINDOWS 29Funktion KurzreferenzPosition der Referenz-marke ermitteln BOOL IK220PositionRef (USHORT Axis, double* pData,
Inhalt 3Beispiele für LabView ... 26 Beispiel für Linux ...
Treiber-Software für WINDOWS 30 Funktion KurzreferenzPrüfsumme der Para-meter lesen BOOL IK220ChkSumPar (USHORT Axis, USHORT* pChkSum) Prüfsum
Treiber-Software für WINDOWS 31Funktion KurzreferenzWert aus Speicher-bereich des EnDat-Gebers lesen BOOL IK220ReadMemEn(USHORT Axis, USHORT
Treiber-Software für WINDOWS 32 Funktion KurzreferenzBlock von Amplituden-werten aus RAM-Buffer lesen BOOL IK220BurstSig (USHORT Axis, USHORT
Treiber-Software für WINDOWS 33Referenz der DLL-Funktionen Alle DLL-Funktionen liefern eine Boolsche Variable zurück. Ist diese Variable „Wahr“ (=TR
Treiber-Software für WINDOWS 34 IK220Version Liest die Programm-Versionen der IK 220, des NT Device Treibers und der DLL. Die Programm-Versionen werde
Treiber-Software für WINDOWS 35IK220LatchInt Erzeugt ein Signal mit dem die Zählerwerte beider Achsen einer IK 220 synchron in Latch 0 gespeichert w
Treiber-Software für WINDOWS 36 IK220LatchRef Mit der nächsten Referenzmarke wird der Zählerwert im Register 2 gespeichert. Der gespeicherte Wert ist
Treiber-Software für WINDOWS 37IK220Set Setzt den Positionswert auf den angegebenen Wert. Benutzt Register 0 um die aktuelle Position zu ermitteln u
Treiber-Software für WINDOWS 38 IK220Read48 Liefert den 48-Bit-Zählerwert. Prototyp: BOOL IK220Read48 (USHORT Axis, USHORT Latch, double* pData); Ax
Treiber-Software für WINDOWS 39IK220CntStatus Liefert zusätzliche Informationen über den letzten Zählerwert-Abruf des entsprechenden Registers. Prot
Inhalt 4 IK220ChkSumPar ... 46 IK220ChkSumPrg ...
Treiber-Software für WINDOWS 40 IK220WaitRef Wartet bis alle aktiven REF-Funktionen beendet sind (Reset, Start oder Stopp mit REF bzw. REF-Fahren). We
Treiber-Software für WINDOWS 41pPeriod1: Zeiger auf Variable in welcher der Signalperiodenwert der steigenden Flanke abgelegt wird. pIntpol1: Zeig
Treiber-Software für WINDOWS 42 IK220DllStatus Liefert den Status der DLL-Funktionen zurück. Prototyp: BOOL IK220DllStatus (ULONG* pDLLStatus, ULONG*
Treiber-Software für WINDOWS 43Die DLL-Info hat folgende Bedeutung: Bitnummer Bedeutung0 Windows Timer nicht verfügbar 1 Windows Timer wird nicht
Treiber-Software für WINDOWS 44 IK220SignalStatus Liefert den Signal-Status der IK 220 zurück. Prototyp: BOOL IK220SignalStatus (USHORT Axis, U
Treiber-Software für WINDOWS 45pSym90: Zeiger auf Variable in welcher die Symmetrie des 90°-Signals abgelegt wird. pFlag1: Zeiger auf Variable in
Treiber-Software für WINDOWS 46 IK220OctStatus Liefert den Oktanten-Status der IK 220 zurück. Prototyp: BOOL IK220OctStatus (USHORT Axis,
Treiber-Software für WINDOWS 47IK220WritePar Ändert einen Parameter der IK 220. Prototyp: BOOL IK220WritePar (USHORT Axis, USHORT ParNum, ULONG Pa
Treiber-Software für WINDOWS 48 IK220ConfigEn Liest die Konfiguration des angeschlossenen EnDat-Geber aus. Die genaue Bedeutung der einzelnen Werte is
Treiber-Software für WINDOWS 49pType: Zeiger auf Variable in welcher der Messgerättyp abgelegt wird. pPeriod: Zeiger auf Variable in welcher die S
Lieferumfang 5Lieferumfang PC-Zählerkarte IK 220 Id.-Nr. 337 481-01 Programmierbeispiele, Treiber-Software und Benutzer-Handbuch. Zubehör • IK Ex
Treiber-Software für WINDOWS 50 IK220ReadEnInc Liefert den absoluten und inkrementalen Zählerwert des angeschlossenen EnDat-Geber zurück. Der EnDat-Zä
Treiber-Software für WINDOWS 51Mode: 0 = Auslesen mit durchlaufendem Takt beenden 1 = Auslesen mit durchlaufendem Takt mit CRC-Prüfung starten 2 =
Treiber-Software für WINDOWS 52 IK220AlarmEn Liefert das Alarmwort des EnDat-Geber und löscht alle aktiven Alarme. Prototyp: BOOL IK220AlarmEn (USHOR
Treiber-Software für WINDOWS 53IK220ReadMemEn Liest Werte aus dem Speicherbereich des EnDat-Gebers. Prototyp: BOOL IK220ReadMemEn (USHORT Axis,
Treiber-Software für WINDOWS 54 pStatus: Zeiger auf Variable in welcher der EnDat-Status abgelegt wird. 0 = o.k. 1 = Geber antwortet nicht bzw. kein
Treiber-Software für WINDOWS 55pDataSsi: Zeiger auf Variable in welcher der absolute Zählerwert des SSI-Geber abgelegt wird. pDataInc: Zeiger auf
Treiber-Software für WINDOWS 56 3 = Eingespeicherte Zählerwerte aus Register 0 werden abgelegt bis maximale Anzahl erreicht ist (Single shot) 4 = E
Treiber-Software für WINDOWS 57pStatus: Status des RAM-Buffers. Bit0=1 : Buffer-Überlauf Bit1=1 : kein Wert im Buffer Bit
Treiber-Software für WINDOWS 58 pAmp90: Zeiger auf ein Array von Variablen in welchem die 90°-Amplitudenwerte abgelegt werden. Es muss Platz für maxC
Treiber-Software für WINDOWS 59IK220RefEval Legt die Art der Auswertung des Referenzmarken-Signals fest. Prototyp: BOOL IK220RefEval (USHORT Axis,
Lieferumfang 6 368 171-xx368 172-xx349 687-xx335 077-xxAbhängig von der Eingangsschaltung der Folge-Elektronik Adapter340 252-01 1 VSS: 60 m max.En
Treiber-Software für WINDOWS 60 IK220Output Schreibt einen 16-Bit-Wert auf die angegebenen Adresse der Achse. Prototyp: BOOL IK220Output (USHORT Axis
Treiber-Software für WINDOWS 61IK220SetEnData Setzt die Daten-Leitung der EnDat-Schnittstelle. Prototyp: BOOL IK220SetEnData (USHORT Axis, BOOL St
Technische Daten 62 Technische Daten Mechanische Kennwerte Abmessungen ca. 190 mm x 100 mm Arbeitstemperatur – 0° C bis 55° C Lagertemperatur –30
Technische Daten 63Abgleich der Mess- Abgleich von Offset, Phase und gerät-Signale Amplitude per Software – auch online Datenregister für 48 Bit,
Content 64 Content Content ... 64 I
Content 65Examples for LabView ... 88 Example for Linux ...
Content 66 IK220ChkSumPar ... 108 IK220ChkSumPrg ...
Items Supplied 67Items Supplied IK 220 Counter Card for PCs Id. Nr. 337 481-01 Programming examples, driver software and User's Manual. Access
Items Supplied 68 368 171-xx368 172-xx349 687-xx335 077-xx Depending on the input circuit of the subsequent electronics Adapter340 252-01 1 VPP: 60
Important Information 69Important Information The EnDat interface offers the possibility of storing machine or system-dependent data in the custom
Wichtige Hinweise 7Wichtige Hinweise Das EnDat-Interface bietet die Möglichkeit im Speicher-bereich des Kunden maschinen- oder anlagenspezifische D
Technical Description of the IK 220 70 Technical Description of the IK 220 The IK 220 counter card for PCs is plugged directly into an expansion slot
Technical Description of the IK 220 71The IK 220's interpolation electronics subdivides the signal period of the input signal up to 4096-fold.
Hardware 72 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
Hardware 73Encoder inputs The IK 220 supports encoders with the following interfaces: • 11 µAPP • 1 VPP • EnDat 2.1 • SSI The power supply for
Hardware 74 Specification of the 1 VPP interface Signal amplitudes A, B (0°, 90°) R (reference mark ) 0.6 VPP to 1.2 VPP 0.2 V to 0.85 V Signal le
Hardware 75Specification of the SSI interface The SSI interface of the absolute encoders is bidirectional. It supplies the absolute position values
Hardware 76 Encoder outputs The IK 220 also feeds the encoder signals from inputs X1 and X2 as sinusoidal current signals (11 µAPP) to two 10-pin MICR
Hardware 77Encoder outputs (ld. Nr. 340 252-01) D-sub connection with male contacts (9-pin) Pin No. Signal 1 I1- 2 0 V (UN) 3 I2 - 4 Not conn
Hardware 78 Connections X11 and X21 for external inputs/outputs (option) D-sub connection with male contacts (9-pin) on PC slot cover For external in
Hardware 79Latching measured values via external inputs The IK 220 has two external inputs for latching and saving measured values. The inputs -L0
Technische Beschreibung der IK 220 8 Technische Beschreibung der IK 220 Die PC-Zählerkarte IK 220 wird direkt in einen Erweiterungs- Steckplatz eines
Hardware 80 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, t
Hardware 81Flow chart: Saving measured values Latch 0OR&Software latch 0&Par. 14Bit 0TimerPar. 14Bit 1IK220ModeTimerIK220LatchInt -Lout 1
Operating Parameters 82 Operating Parameters The IK 220 requires operating parameters to properly execute the desired functions. Predetermined default
Operating Parameters 83 Param.NumberFor-mat Meaning 7 16 bits 0 to 12: Number of interpolation bits Default value 12 The interpolation value (16-
Operating Parameters 84 Parameter 11: Interval between two latches per timer. The following values can be set directly by the timer of the IK 220: P
Driver Software for WINDOWS 85Driver Software for WINDOWS General information The driver software for the IK 220 enables applications to access the
Driver Software for WINDOWS 86 Installing the drivers and DLLs under Windows 2000 and Windows XP • After inserting the IK 220 card into your computer
Driver Software for WINDOWS 87Device driver for Windows 95/98 (IK220VXD.VXD) The Windows 95/98 device driver is a virtual device driver for Windows
Driver Software for WINDOWS 88 Examples Example for console application In the subdirectory ”\Disk2\IK220Con\Release” of the "IK 220" direc
Driver Software for WINDOWS 89Calling the DLL functions from an application program To be able to use the functions of the DLL they must be known by
Technische Beschreibung der IK 220 9Die Interpolations-Elektronik in der IK 220 unterteilt die Signalperiode des Eingangs-Signals bis zu 4096fach. D
Driver Software for WINDOWS 90 Function Short referenceDelete counter with next reference mark BOOL IK220ResetRef (USHORT Axis) Start counter with ne
Driver Software for WINDOWS 91Function Short referenceFind position of the rising and falling edge of the reference mark BOOL IK220PositionRef2 (USH
Driver Software for WINDOWS 92 Function Short referenceRead checksum of firmware BOOL IK220ChkSumPrg (USHORT Axis, USHORT* pChkSum1, US
Driver Software for WINDOWS 93Function Short referenceRead value from memory area of the EnDat encoder BOOL IK220ReadMemEn (USHORT Axis, USH
Driver Software for WINDOWS 94 Function Short referenceRead amplitude values block from RAM buffer BOOL IK220BurstSig (USHORT Axis, USHORT ma
Driver Software for WINDOWS 95Reference of DLL functions All DLL functions return a Boolean variable. If this variable is ”true” (i.e.: <>0),
Driver Software for WINDOWS 96 IK220Version Reads the program versions of the IK 220, the NT device driver and the DLL. The program versions are saved
Driver Software for WINDOWS 97IK220LatchInt Generates a signal with which the counter values of both axes of an IK 220 are saved synchronously in La
Driver Software for WINDOWS 98 IK220LatchRef With the next reference mark, the counter value is saved in register 2. The saved value is without interp
Driver Software for WINDOWS 99IK220Set Sets the position value to the indicated value. Uses Register 0 to determine the current position, and calcul
Kommentare zu diesen Handbüchern