Note

Diagnostic procedure

Dtc c1510, c1511, c1512, c1513Mazda 6 Service Manual: Jam-safe Moonroof
If a person's hands, head or an object blocks the moonroof while it is closing,
the moonroof will stop and move in the reverse direction.
WARNING
Make sure nothing blocks the moonroof just before it reaches the fully closed
position: Blocking the moonroof just before it reaches the closed posi ...
Mazda 6 Service Manual: Cargo compartment light switch inspection
1. Remove the liftgate lower trim. (See LIFTGATE LOWER TRIM
REMOVAL/INSTALLATION)
2. Disconnect the cargo compartment light switch connector.
3. Inspect for continuity between the cargo compartment light switch
terminals using an ohmmeter.
If not as specified, replace the liftgate lock.
...