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/InstallationBrake
Brake System
Foot Brake
Your Mazda has power-assisted brakes that adjust automatically through normal
use.
Should power-assist fail, you can stop by applying greater force than normal
to the brake pedal. But the distance required to stop will be greater than usual.
WARNING
Do not coast wi ...
Engine Oil Pressure Warning Light
Purpose
The engine oil pressure warning light warns the driver that the engine oil
level is insufficient.
Function
When the instrument cluster receives the engine oil pressure warning light
request signal sent from the PCM via the CAN signal, it illuminates the engine
oi ...
Rear Body Control Module (Rbcm) Configuration (Using Read/Write Function)
NOTE:
When performing configuration, it is necessary to read the vehicle specification
information from the rear body control module (RBCM) before replacing it. Connect
the M-MDS to the vehicle and perform vehicle identification before removing
the rear body control module (RBCM). T ...