In MAX you can configure the Find Reference settings but there is no
function in there to start it. If you are using LabVIEW you can use the
examples from the Find Reference.llb (e. g. C:\Program Files\National
Instruments\LabVIEW 7.1\examples\Motion\FlexMotion). For any other
programming environment you can use this pseudo-code :
flex_find_reference();
While (<Reference not found>)
{
flex_check_reference();
}
When Home switches are enabled in the Axis Configuration MAX will always stop motion as soon as the drive passes the Home switch. But you have to select the direction manually, I.e. if the Home switch is in forward direction from current position you have to make a drive forward - as far as I know MAX cannot detect in which direction relative to current position the Home switch is, and cannot perform a true Search Home routine.
You should set the axis to Velocity mode so that it runs continuously until it reaches the Home position.
Due to hysteris of real world home switches you should always approach the home position from the same direction, and keep the same 'initial search direction' in your final application.