HEIDENHAIN IK 220 Benutzerhandbuch

Seite 111

Advertising
background image

Driver Software for WINDOWS

111

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.

pTurns:

Pointer to a variable in which the number of
resolvable revolutions is saved.

pRefDist:

Pointer to a variable in which the nominal
increment of distance-coded REF marks is saved

pCntDir:

Pointer to a variable in which the measuring
direction is saved.


IK220ReadEn
Reports the absolute 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 IK220ReadEn (USHORT Axis,

USHORT* pStatus, double* pData,
USHORT* pAlarm);

Axis:

Number of the axis (0 to 15)

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

pData:

Pointer to a variable in which the counter value of
the EnDat encoder is saved

pAlarm:

Pointer to a variable in which the alarm bit is saved

0 = OK

1 = Alarm

Advertising