re
Both you and John have been generous with your advice so far, thank you. I hope you're both still patiently taking an interest, as this issue is still puzzling me.
For the last day or so, the toggle has returned to working reliably. I've made no changes. This design does have the merit of simplicity, (as well as being something I thought of myself ), so although I'll almost certainly change it in the course of a rebuild, I'd still like to satisfy my curiosity as to whether or not it *should* work. I think I'm close to resolving this.
Attempts to simulate have so far been unsuccessful. Digital mode in CM is no use here, as it won't accommodate diodes, resistors, caps, etc; and so far in analog mode I can't get outputs to change state at all! That's a side issue I'll also explore, as I *should* be able to simulate it somehow.
As for the real circuit, from the resting state with both latches off, immediately following the 'simultaneous' pulses reaching pins 1 and 8, there is presumably a very brief period when one latch is on and the other off. (They cannot both be on together, because of diodes from output of one latch to the reset of the other.) If that happens to be the 'wrong' latch, the curtain will try to move against the existing limit. That definitely used to happen on occasions; currently it's not done so on my last dozen trials. So, because the toggle button will still be closed, it seems to me that it will *then* set the correct latch. That was the simplistic thinking that prompted me.
However, I've just realised there's plainly at least one other factor that must affect the behaviour: whether or not the limit switch is closed. Sometimes when the curtain reached a limit, it would maintain the microswitch closed. Sometimes not. Another 4 trials a few minutes ago showed that, for the time being at least, it *is* keeping the appropriate switch closed (at either limit).
With the curtain closed, I manually forced the 'Close Stop' switch open. Now Toggle did *not* work. It started motor in wrong direction, i.e. continuing to try to close it, and I had to use Emerg Stop.
If my analysis is correct, then the inherently uncertain mechanics means this approach is indeed unreliable.
-------
I'm also thinking of returning to battery operation of the motor (3 NiCads). During opening and closing, my '13V' line drops from 14.1 to
10.0 V. That can't help stability of the logic sections. My main gripe with the battery approach was that, after a failure (almost certainly due to the issue discussed above), one of the three would get reverse charged. So, after removing the stall condition, my built-in 35 mA trickle would not restore them. (Had to nurse them back in the workshop, a PITA.) But if I can electronically remove the stall, that problem should disappear. Of course, I'd have to prevent the stall repeating indefinitely, but that's another matter...