If signal source is varying between zero and 5V; and if we buffer this signal with an opamp which works with +10V supply or */-10V dual supply, is it then possible to pull up the op amp's output to its around -10V negative or around 10V positive rail when its input is floating(when the signal is decoupled from the opamp's input)? Can you show a topology example?
The following behaviour I mean:
input ---> opamp buffer --> output
10mV ------> opamp buffer ------> 10mV
5V ------> opamp buffer ------> 5V
Floating ------> opamp buffer ------> -opamp's negative rail(-10V) or positive rail +10V (but not zero V)
Edit:
To be more specific the following opamp buffer does not go to positive or negative rail when its input is floating:
So in simulation output is no behaving how I need. how can we modify this to obtain -15V or +15V output (around one of the rail voltages) when the input is floating?
Edit for an answer: