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 scanning motor will drive to the peak position. If no peak is found, the motor will return to the initial position. FM uses counts coming in to the monitor to measure intensity.
[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.