ac/heat blows then cuts off on 2000 Mercedes-Benz SL500

ac/heat blows then shuts off then later comes on then shuts off

Asked by for the 2000 Mercedes-Benz SL500
1 answer
Because the temperature arrives that the thermostat is set for?