Circuit/System Description
WARNING: This page is about a different car, the 2017 Chevrolet Spark. However, it is still accessible from the selected car via links, so may be relevant.
Battery voltage is applied to the sunroof module via the SUNROOF fuse. Ignition voltage is applied to the sunroof switch via the SUNROOF fuse. The sunroof switch provides a voltage signal to the sunroof control module. The sunroof control module then applies ground and voltage to the motor control circuits according to the sunroof direction selected. When the sunroof reaches the end of it's travel, a limit switch is engaged and a signal is sent to the sunroof control module to stop the motor.