HEIDENHAIN IK 220 Benutzerhandbuch

Seite 118

Advertising
background image

Driver Software for WINDOWS

118


4 = Latched counter values from register 1 are

transferred until the max. number is reached
(single shot)

IK220ResetRam
The write and read pointer of the RAM buffer is set to 0. All of
the values in the RAM buffer are canceled.
Prototype: BOOL IK220ResetRam (USHORT Axis);
Axis:

Number of the axis (0 to 15)


IK220GetRam
A counter value previously stored in the RAM buffer is output.
After the value has been read, the offset of the read pointer is
increased until all of the values are output.
Prototype: BOOL IK220GetRam (USHORT Axis,

double* pData, USHORT* pRead,
USHORT* pWrite, USHORT* pStatus);

Axis:

Number of the axis (0 to 15)

pData:

Pointer to a variable in which the counter 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


IK220BurstRam
Counter values previously stored in the RAM buffer are output.
The read pointer is then increased by the number of read values.
Prototype: BOOL

IK220BurstRam (USHORT Axis,

USHORT maxCount, double* pData,
USHORT* pCount, USHORT* pStatus)

Axis:

Number of the axis (0 to 15)

maxCount: Maximum number of values that are read during

latching.

pData:

Pointer to an array of “double variables” (64 bits)
in which the counter values are saved. Space must
be reserved for maxCount counter values!

pCount:

Pointer to a variable in which the actual number of
read counter values is saved.

Advertising