HEIDENHAIN IK 220 Benutzerhandbuch
Seite 112

Driver Software for WINDOWS
112
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);
Axis:
Number of the axis (0 to 15)
Latch:
0 = Read out incremental values via register 0
1 = Read out incremental value via register 1
pStatus:
Pointer to a variable in which the EnDat status is
saved.
0 = OK
1 = Encoder does not answer or no encoder
connected
2 = Error CRC sum
3 = Error type A
pDataEn:
Pointer to a variable in which the absolute counter
value of the EnDat encoder is saved
pAlarm:
Pointer to a variable in which the alarm bit is saved
0 = OK
1 = Alarm
pDataInc:
Pointer to a variable in which the incremental
counter value of the EnDat encoder is saved
IK220ModeEnCont
Starts and stops the continuous EnDat clock. With a continuous
EnDat clock, new EnDat counter values are continuously called,
and incremental values are acquired in synchronism. The
counter values can be read out with IK220ReadEnIncCont.
Other functions cannot be used in this mode of operation. If the
continuous EnDat clock is started without CRC check, the
checksum will not be checked after data transmission. This
shortens the latching time.
Prototype: BOOLIK220ModeEnCont (USHORT Axis,
USHORT Latch, USHORT Mode,
SHORT* pStatus)
Axis:
Number of the axis (0 to 15)
Latch:
0 = Output incremental value via register 0.