Installation guide
Keyword Reference Guide
MN1270 02.2002 103
Controllers Supported:
NextMove PCI NextMove PC NextMove BX MintDrive ServoNode 51
Format:
v = MOVEBUFFERFREE[axis]
Dot Parameters:
Axis - Axis No.
Attributes:
Controller Read Write Command Multi-
Axis
Scaled Default Range
All
0 ≤ x ≤ 100
Description:
Each axis maintains a data structure, into which moves are loaded, known as the move buffer. The size
of this buffer and hence the number of moves that can be loaded at any time can be configured with the
MOVEBUFFERSIZE keyword.
If the buffer is full and an attempt is made to load a valid move type, program execution will wait until
a free slot in the buffer becomes available. If the moves in the buffer require the
GO keyword in order to
start, the controller will hang in that state.
This situation can be avoided by using
MOVEBUFFERFREE to return the number of free spaces left in the
move buffer for the specified axis. If no moves are loaded then the number of free moves will be the
buffer size. As moves are loaded, the number of free spaces will decrease to zero, indicating that the
buffer is full.
The only exception to this is when following. The
FOLLOW move type will appear to not occupy any
space in the move buffer. Only one
FOLLOW move can be loaded though so this does not present a
problem.
Example:
LOOP
IF MOVEBUFFERFREE > 1 THEN GOSUB LoadNextMove
..
ENDL
This loops round testing the number of spaces available in the buffer. If there are 2 or more free spaces
then it calls a user routine to load another move.
See Also:
GO, MOVEBUFFERSIZE
MOVEBUFFERID/MBI
Purpose:
To attach or read back a 16 bit identifier from the move buffer.
Controllers Supported:
NextMove PCI NextMove PC NextMove BX MintDrive ServoNode 51
Format:
MOVEBUFFERID[axes] = <expression> {,<expression> ...}
v = MOVEBUFFERID[axis]
Dot Parameters:
Axis - Axis No.