The rear of the moonroof can be tilted open to provide more ventilation.
To fully tilt automatically, momentarily press the tilt/slide switch.
To fully close automatically, momentarily press the tilt/slide switch in the forward direction.
To stop tilting partway, press the tilt/slide switch.

Moonroof (Some models)
Slide OperationMazda 6 Owners Manual: Outside Temperature Display
When the ignition is switched ON, the outside temperature is displayed.
NOTE
Under the following conditions, the outside temperature display may differ
from the actual outside temperature depending on the surroundings and vehicle conditions:
Significantly cold or hot temperatures.
Sudden ...
Mazda 6 Owners Manual: Dtc b1318
Caution
When attaching the tester lead to the ABS (ABS/TCS) HU/CM harness
connector, the SST (49 G066 001) must be used. (See ABS (ABS/TCS) HU/CM
INSPECTION.)
Diagnostic procedure
...