HEIDENHAIN IK 220 Benutzerhandbuch

Seite 113

Advertising
background image

Driver Software for WINDOWS

113

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
connected EnDat encoder while the counter values of the
EnDat are read out continuously with continuous clock. Before
this function is used, the continuous EnDat clock must be
started with IK220ModEnCont. The EnDat counter value has
the same significance as the incremental value, i.e., 1.0
represents one signal period.
Prototype: BOOLIK220ReadEnIncCont (USHORT Axis,

USHORT* pStatus, double* pDataEn,
USHORT* pAlarm, double* pDataInc,
USHORT* pSigStat)

Axis:

Number of the axis (0 to 15)

pStatus:

Pointer to a variable in which the EnDat status is
saved.
0:

OK

Bit 0=1: Encoder does not answer or no encoder

connected.

Bit 1=1: Error CRC sum
Bit 2=1: 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

pSigStat:

Pointer to a variable in which the amplitude status
of the incremental signals is saved.

Bit 0/1: Status minimum amplitude

Bit 2/3: Status present amplitude

Bit 4/5: Status maximum amplitude

(Amplitude status: 00=normal / 01=low / 10=high /
11=too low)

Advertising