Scans a device over a given range to find device position at which maximum intensity is reached. If a peak is found, a fit can be done, and the zero of the scanning motor is reset appropriately. AP command uses counts coming in on the default detector.
[Motor] is an integer that specifies the motor selected for the scan.
[Range] is the device range centered at current device position.
[Step size] is the length between two adjacent device positions in the scan. The number of points in the scan will be set to [Range]/[Step size].
[Counts] specifies the number of monitor counts (if [Counts] is greater than zero) or the number of seconds (if [Counts] is less than zero) till which count is performed at every device position.
[Tolerance] specifies tolerance of the selected motor. (Optional)
[Max iteration] specifies the maximum number of iterations. (Optional)