Hello everyone

Am trying to control the angle of a servo motor in Proteus( angle goes from 0 to 45 then to 0 ), I tried to use the sweep example but when I change the angle from 180 to 45 the motor goes to -90 and get stack.

Thank you for your help