for the mitsubshi plc try using the alt funtion, when this function is used the first time the input is true causes the output to turn on, the second time the input is true causes the the output turn off,this goes on and on. i would say look in there are no special function in the programming manual that can achieved your goal