GM Service Manual Online
For 1990-2009 cars only

The power sunroof is operated by the sunroof motor/actuator which consists of the motor and electronic control unit as a complete assembly. The system is powered by a battery supply circuit and ignition and retained accessory power signal circuits determine when the may be operated. The switch signal circuits are supplied battery voltage through a resistor and monitored within the ECU. When a sunroof switch is pressed the switch signal circuit is closed to ground and most of the voltage supplied to the signal circuit will be dropped across the resistor within the ECU indicating the switch is active.