Installation guide

Mint™ v4 Advanced Programming Guide
106 MN1270 02.2002
is installed using the function installMoveBufferLowHandler, see the Mint v4 PC Programming
Guide for further details on trapping events on the host.
Move buffer low events can only be trapped using an embedded or a host application, not within
Mint.
Example:
AXES[2]
MOVEBUFFERSIZE = 10
MOVEBUFFERLOW = 3
The above example changes the MOVEBUFFERSIZE to 10. Setting MOVEBUFFERLOW to 3 means that
when there are more than 3 free spaces in the move buffer a ‘move buffer low’ event will be generated.
See Also:
MOVEBUFFERSIZE
MOVEBUFFERSIZE/MB
Purpose:
To set or return the size of the move buffer allocated on the specified axis.
Controllers Supported:
NextMove PCI NextMove PC NextMove BX MintDrive ServoNode 51
Format:
MOVEBUFFERSIZE[axes] = <expression> {,<expression> ...}
v = MOVEBUFFERSIZE[axis]
Dot Parameters:
Axis - Axis No.
Attributes:
Controller Read Write Command Multi-
Axis
Scaled Default Range
All
2
2 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 to suit an
application. The size of the move buffer controls how many moves can be loaded without calling the
GO keyword and also affects the efficiency of axis contouring. The maximum number of multi-axis
moves that can be loaded is limited by the axis with the smallest move buffer.
If the move buffer on an axis is full and another move on that axis is set up, Mint will wait for a space in
the buffer to become available before moving onto the next line of code. Care must taken however
since it possible to fill the move buffer and have a move pending without reaching a
GO statement to
execute the moves. It is therefore recommended that a
GO statement is issued after each move is set up.
The
MOVEBUFFERFREE keyword can be used to check the amount of available space in the buffer
before loading a move.
Each axis has a default move buffer size of 2 moves (the minimum permitted). This can be extended up
to 100 per axis (memory space permitting). In order to change the move buffer size, the axis must be
idle.
Example:
CONFIG[5,6] = _cfOFF;
MOVEBUFFERSIZE[5,6] = 30;
CONFIG[5,6] = _cfSTEPPER;
This changes the move buffer size to 30 on axes 5 and 6.