Actually I want the inputs to be changed manually regardless of these conditions.
Until now I have not defined the output for the condition you have mentioned.
My measure problem is that how to check the value of input 2 in between the On cycle, and to decide what will happen next according to the value of input 2.