Sunroof Motor
WARNING: This page is about a different car, the 2016 GMC Acadia, 2016 Chevrolet Traverse, and 2016 Buick Enclave. However, it is still accessible from the selected car via links, so may be relevant.
The sunroof control module assembly has a bi-directional motor. The motor ground is removed when the sunroof reaches the soft stop end of travel position. This is based on the learned position that was performed during the initialization process. The internal hall effect sensors within the sunroof control module assembly creates pulses that are counted by the modules until the end of travel position is reached.