Hi and welcome to the forum!
A servo requires a specific repeating signal to hold at any given position. Servos are not not programmed. You could program a microcontroller to do what you want, or a fairly simple circuit with 2 555 timers to do what you are asking.
I have no idea what you...