From the Factory Service Manual:Quote »MEMORY RESET PROCEDUREInitialization of system should be conducted after the following conditions.• When the sunroof motor is changed.• When the sunroof does not operate normally. (Incomplete initialization conditions)
INITIALIZATION PROCEDUREIf the sunroof does not close or open automatically, use the following procedure to return sunroof operation to normal.
1. Close the sunroof if it is not in the closed position. It may be necessary to repeatedly push the switch to close the sunroof.2. Press and hold the TILT UP switch the sunroof will tilt up. Release the button.3. Press and hold the TILT UP switch again. Do not release the switch, keep pressure on it. After 4 seconds of depressing, the sunroof will full close.4. Initializing procedure is complete. Confirm proper operation of the sunroof (slide open, slide close, tilt up,tilt down.)[/quote]