HEIDENHAIN IK 220 Benutzerhandbuch

Seite 110

Advertising
background image

Driver Software for WINDOWS

110

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. This function must
be called before further EnDat functions can be used!

Prototype: BOOL

IK220ConfigEn (USHORT Axis,

USHORT* pStatus, USHORT* pType,
ULONG* pPeriod, ULONG* pStep,
USHORT* pTurns, USHORT* pRefDist,
USHORT* pCntDir);

Axis:

Number of the axis (0 to 15)

pStatus:

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

Low

byte:

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
High byte:
0 = OK
1 = Error reading init-parameter MRS code 0xA1
2 = Error reading bits per position
3 = Error reading encoder type
4 = Error reading low-word signal period
5 = Error reading init-parameter MRS code 0xA3
6 = Error reading high-word signal period
7 = Error reading max. distinguishable revolutions
8 = Error reading init-parameter MRS code 0xA5
9 = Error reading supported alarms
10 = Error reading supported warnings
11 = Error reading nominal increment

distance-coded REF

12 = Error reading low-word measuring step
13 = Error reading high-word measuring step
14 = Error reading measuring direction

Advertising