Installation guide

Mint™ v4 Advanced Programming Guide
46 MN1270 02.2002
CAPTUREAXIS.0 = 0
CAPTURE = _capSINGLE
The above MintDrive example will capture 2 seconds worth of data, read every servo tick (i.e. 2 ms per
point for 1000 data points), of the measured speed taken from axis 0.
CAPTUREINTERVAL = 2
CAPTUREMODE.0 = _cpMEASURED_SPEED
CAPTUREAXIS.0 = 2
CAPTURE = _capWRAP
PAUSE IN1 = 1
CAPTURE = _capSTOP
The above example will start to capture measured speed from axis 2 every second servo loop. The
capture has been set to wrap so that when the capture buffer fills up, the oldest data is overwritten with
new data. The capture is then halted after input 1 becomes active. The buffer will hold up to 4 seconds
of data, ending at the point when the input became active.
ServoNode51 has an additional mode known as high speed capture. This data capture is performed in
the drive stage of the controller. There are 256 data points which allows approximately 8ms of data
capture. Attempting to capture non-high speed data will result in an error message.
See also:
CAPTUREAXIS, CAPTUREEVENT, CAPTUREINTERVAL, CAPTUREMODE
CAPTUREAXIS/CPA
Purpose:
To read or set the axis on a capture channel.
Controllers Supported:
NextMove PCI NextMove PC NextMove BX MintDrive ServoNode 51
Format:
CAPTUREAXIS.channel = <expression>
v = CAPTUREAXIS.channel
Dot Parameters:
Channel - Capture Channel.
Attributes:
Controller Read Write Command Multi-
Axis
Scaled Default Range
All
0
0 x < 6
Description:
The keyword
CAPTUREAXIS can be used to either set which axis is assigned to a capture channel or to
read which axis is currently assigned to a capture channel.
Example:
CAPTUREAXIS.0 = 0
CAPTUREMODE.0 = 1
CAPTURE = 1
The above example will capture the measured speed from axis 0.
Restrictions:
CAPTUREAXIS is not applicable to CAPTUREMODE 8.
CAPTUREAXIS specifics the auxiliary encoder channel for CAPTUREMODE 9 and 10.
See also:
CAPTUREINTERVAL, CAPTUREMODE, CAPTURE