hello, i need to build a motor sensor state emulator, so i need one input and two outputs, basically its a 24v dc motor with two optic sensors, i need to emulate. it works this way, machine drives motor until one optical sensor closes and other sensor opens then motor stops, after that machine drives motor again until sensors restores its beginning state, one open, other closed.
What i need is idea of schematic for this task, so
input high, output 1 changes to low, ouput 2 changes to high, (after that input changes to low by other hardware)
next machine run input high, output 1 changes to high, output 2 to low, (after that input changes to low by other hardware)
this will be the loop.
outputs will be just two optocouplers, input is 24V DC. How to achieve this without microcontroller?