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/InstallationCoupler Component Removal/Installation [Fw6 A EL, Fw6 Ax EL]
WARNING:
A hot transaxle and ATF can cause severe burns. Turn off the engine and wait
until they are cool.
Always wear protective eye wear when using the air compressor. If the air
compressor is used, any particles of dirt or soiling could spatter and get into
the eyes.
...
Transaxle Fluid Temperature (Tft) Sensor [Fw6 A EL, Fw6 Ax EL]
Purpose/Function
The transaxle fluid temperature (TFT) sensor detects the ATF temperature
in the oil pan.
The transaxle fluid temperature (TFT) sensor signal is used for automatic
shift control, TCC control, line pressure control, direct electric shift control,
learning contr ...
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 ...