1. Disconnect the negative battery cable..
2. Remove the front map light..
3. Verify that the continuity between the sunroof switch terminals is as indicated in the table.

If not as indicated in the table, replace the sunroof switch.

Sunroof Switch Removal/InstallationCrankshaft Pulley
Purpose, Function
The crankshaft pulley transmits the drive force to the auxiliary parts via
the drive belt.
The crankshaft pulley suppresses torsional vibration of the crankshaft.
Construction
The crankshaft pulley is installed to the front of the crankshaft.
...
Sunroof Switch Inspection
1. Disconnect the negative battery cable..
2. Remove the front map light..
3. Verify that the continuity between the sunroof switch terminals is as indicated
in the table.
If not as indicated in the table, replace the sunroof switch.
...
Customer Assistance (Canada)
Satisfaction Review Process
Your complete and permanent satisfaction is of primary concern to Mazda. All
Authorized Mazda Dealers have both the knowledge and tools to keep your Mazda in
top condition. In our experience, any questions, problems, or complaints regarding
the operation of your Ma ...