If the battery is disconnected, the moonroof will not operate. The moonroof will not operate correctly until it is reset.
Carry out the following procedure to reset the moonroof and resume operation:
1. Switch the ignition ON.
2. Press the tilt switch, to partially tilt open the rear of the moonroof.
3. Repeat Step 2. The rear of the moonroof tilts open to the fully open position, then closes a little.
NOTE
If the reset procedure is performed while the moonroof is in the slide position (partially open) it will close before the rear tilt opens.
Mazda 6 Owners Manual: No.2 neither abs warning light nor brake system warning lightilluminate with
ignition switch on
When performing an asterisked (*) troubleshooting inspection, shake the
wiring harness and connectors while doing the inspection to discover whether
poor contact points are the cause of any intermittent malfunction. If there
is a problem, check to make sure connectors, terminals and ...
Mazda 6 Owners Manual: Locking, Unlocking the Doors
NOTE
The system may not operate if you are too close to the windows or door
handles.
If the key is left in the following areas and you leave the vehicle,
the doors may be locked depending on the radio wave conditions even if the key
is left in the vehicle.
Around the dashboard
...