Autofocus uses an outer tracking loop to control motion using feedback from an analog input.
A target voltage is specified and the axis moves to the target analog input voltage. 

A3200/Ensemble/Soloist

A3200 Only: Autofocus does not apply when used with the GL4, the Ndrive FCL or FLS, the Nmark CLS, GCL, or SSaM, or the XL4s.

Configuration

The parameters to configure the Autofocus loop are located under Axis > Autofocus Loop in the parameter file.

  1. To start, set the AutofocusInput parameter to the analog input channel that you are using with this axis.
  2. Set the AutofocusTarget parameter to the target voltage of the analog input. This is the voltage that will be the target, or set-point, of the control loop.

These are technically the only parameters that are required to enable Autofocus. There are other features however that could still be helpful to configure depending on the system.

On the A3200 and Ensemble platforms, Autofocus is enabled/disabled from an AeroBasic program using the AUTOFOCUS [axis] ON and AUTOFOCUS [axis] OFF commands respectively. For the Soloist, these commands are AUTOFOCUS ON and AUTOFOCUS OFF.


Tuning

The Loop Polarity setting of the AutofocusSetup parameter must be correctly configured before tuning the Autofocus loop.
To verify the loop polarity, enable Autofocus and observe the axis. If it moves further away from the target position, the loop polarity must be reversed.

The AutofocusGainKi, AutofocusGainKp, and AutofocusGainKi2 parameters are used to tune the response of the Autofocus loop. The Autofocus loop is a PI control loop where Kp is the proportional gain and Ki and Ki2 are the integral gains. In general Ki and Ki2 control the responsiveness of the loop and Kp controls the loop rigidity.

For reference, an example of some final gain values could be Ki = 0.4, Ki2 = 0, Kp = 4. The final gains you end up with will depend on your system. 


Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues