To fully open automatically, momentarily press the tilt/slide switch in the backward direction.
To fully close automatically, momentarily press the tilt/slide switch in the forward direction.
To stop sliding partway, press the tilt/slide switch.

Tilt Operation
Power Moonroof Reset ProcedureMazda 6 Owners Manual: Dtc c1148, c1158, c1168, c1178, c1233, c1234, c1235, c1236
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
...
Mazda 6 Owners Manual: Cruise control switch inspection
1. Disconnect the negative battery cable.
2. Remove the driver-side air bag module. (See DRIVER-SIDE AIR BAG MODULE
REMOVAL/INSTALLATION.)
3. Disconnect the cruise control switch connector.
4. Inspect for resistance and continuity between the cruise control switch
terminals using an ohmmeter. ...