Limit Switches
WARNING: This page is about a different car, the 2007 Hummer H2. However, it is still accessible from the selected car via links, so may be relevant.
The limit switches are within the sunroof actuator motor and supply data. The multiple data combinations allow the sunroof actuator motor to track the position of the sunroof window.