127
Atlas® Digital Amplifier Complete Technical Reference
6
SetBufferReadIndex
C6
h
GetBufferReadIndex
C7
h
Syntax
SetBufferReadIndex
bufferID index
GetBufferReadIndex
bufferID
Motor Types
Arguments
Name
Type
Range
Scaling
Units
bufferID
unsigned 16 bits
0
to
3
unity
-
index
unsigned 32 bits
0
to
buffer
unity
double words
length - 1
Packet
Structure
Description
SetBufferReadIndex
sets the address of the read
index
for the specified
bufferID
.
GetBufferReadIndex
returns the current read
index
for the specified
bufferID
.
Restrictions
If the read index is set to an address beyond the length of the buffer, the command will not be executed
and will return error code 7, buffer bound exceeded.
see
Set/GetBufferLength
Set/GetBufferStart
DC Brush
Brushless DC
Microstepping
SetBufferReadIndex
checksum
C6
h
15
8 7
0
First data word
write
0
bufferID
15
2 1
0
Second data word
write
index
(high-order part)
31
16
Third data word
write
index
(low-order part)
15
0
GetBufferReadIndex
checksum
C7
h
15
8 7
0
First data word
write
0
bufferID
15
2 1
0
Second data word
read
index
(high-order part)
31
16
Third data word
read
index
(low-order part)
15
0