HEIDENHAIN IK 220 Benutzerhandbuch

Seite 119

Advertising
background image

Driver Software for WINDOWS

119

pStatus:

Status of the RAM buffer.

Bit 0=1: Buffer overflow

Bit 1=1: No value in the buffer

Bit 2=1: Last value is read from the buffer

Bit 15=1: Error while reading buffer


IK220GetSig
An amplitude-value pair stored in the RAM buffer is output.
The read counter is increased after reading.
Prototype: BOOL IK220GetSig (USHORT Axis,

USHORT* pPeriod, SHORT* pAmp0,
SHORT* pAmp90, USHORT* pRead,
USHORT* pWrite, USHORT* pStatus)

Axis:

Number of the axis (0 to 15)

pPeriod:

Pointer to a variable in which the lower 16 bits of
the signal-period counter are saved

pAmp0:

Pointer to a variable in which the 0°-amplitude
value is saved

pAmp90:

Pointer to a variable in which the 90°-amplitude
value is saved

pRead:

Pointer to a variable in which the offset of the
writing pointer is saved in the RAM buffer.

pWrite:

Pointer to a variable in which the offset of the
reading pointer is saved in the RAM buffer.

pStatus:

Status of the RAM buffer.

Bit 0=1: Buffer overflow

Bit 1=1: No value in the buffer

Bit 2=1: Last value is read from the buffer


IK220BurstSig
Amplitude-value pairs previously stored in the RAM buffer are
output. The read pointer is then increased by the number of
read values.
Prototype: BOOL

IK220BurstSig (USHORT Axis,

USHORT maxCount, USHORT* pPeriod,
SHORT* pAmp0, SHORT* pAmp90,
USHORT* pCount, USHORT* pStatus)

Axis:

Number of the axis (0 to 15)

maxCount: Maximum number of value pairs that are read

during latching

pPeriod:

Pointer to an array of variables in which the signal-
period-counter values are saved Space must be
reserved for maxCount values!

pAmp0:

Pointer to an array of variables in which the 0°
amplitude values are saved. Space must be
reserved for maxCount values!

Advertising