### RN - Return Scan Data

The RN command terminates collection of scan data and/or returns collected scan data to MeasureMax+.

Command Format

MLString "RN p1"

Examples

1. MLString "RN"

   If scanning is active wait for the DCC queue to become empty and the final move to be in-tolerance, then terminate scanning. Return the number of data points to the host.

2. MLString "RN 0"

   If scanning is active wait for the DCC queue to become empty and the final move to be in-tolerance, then terminate scanning. Return the collected data points (beginning with point number 0) and the number of data points to the host.

Input

- p1 = point index (Numeric; optional)

The optional numeric parameter p1 cannot be a negative number. If specified, p1 requests that scan data points be returned to the host beginning with point #p1. Note that the first point collected has index 0 (zero). If p1 is not specified the collected data is not to be returned to the host computer.

Results

The RN command completes a scan data collection operation initiated by the AS command. If scanning is active it will be terminated when the DCC queue becomes empty and the final move to be in-tolerance. If p1 is specified the collected data points are returned from the scan buffer to the host computer and stored in the S9 array. For all scan types except A (see AS command), the point data is stored in the S9 array in normal X, Y, Z order; that is, the X coordinate data values are stored in S9(*, 0), Y values in S9(*, 1), and Z values in S9(*, 2). For a scan of type A, polar radius values are stored in S9(*, 0), polar angle values are stored in S9(*, 1), and third axis values (height) are stored in S9(*, 2).

The number of collected data points is returned to variable S7.

Skip Action

Ignored.

Error Messages

None.