I've exactly the same project but i can't make search option, I checked this forum prepared program as directed but during working when I have input signal from sensor i have many error
WHAT errors? How can we help if you don't tell us what the errors are? Be specific.
Your program is declaring Interrupt 11 in SEARCH -- this must take place in MAIN.
MOVEP should end with a WAIT FOR TRUE or WAIT SEC 0, to ensure the Advance Run Pointer cannot return to Main before the Interrupt fires.