HEIDENHAIN IK 220 Benutzerhandbuch
Seite 115

Driver Software for WINDOWS
115
IK220ReadMemEn
Reads values from the memory range of the EnDat encoder.
Prototype: BOOL
IK220ReadMemEn (USHORT Axis,
USHORT
Range,
USHORT
MemAdr,
USHORT* pMemData, USHORT* pStatus)
Axis:
Number of the axis (0 to 15)
Range:
Selection of memory area
0:
Operating
status
1: Parameters of the encoder manufacturer
2:
Operating
parameters
3:
OEM
parameters
4:
Compensation
values
MemAdr: Word address in the selected range
pMemData: Pointer to a variable in which the value is saved.
pStatus:
Pointer to a variable in which the EnDat status is
saved.
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
IK220WriteMemEn
Writes values to the OEM parameter memory of the EnDat
encoder. The meanings of the values are defined by the OEM.
Prototype: BOOL
IK220WriteMemEn (USHORT Axis,
USHORT
Range,
USHORT
MemAdr,
USHORT MemData, USHORT* pStatus)
Axis:
Number of the axis (0 to 15)
Range:
Selection of memory area
0:
Operating
status
1: Parameters of the encoder manufacturer
2:
Operating
parameters
3:
OEM
parameters
4:
Compensation
values
MemAdr:
Memory address in the selected range
MemData: Value to be written.