One other issue, when the output driving the LED and Optocoupler
goes low, that floats the Optocoupler input, and subjects it to noise
and leakage. Plan on using a R to ground at its input so that when
external LED is reversed biased the input is forced low to the Opto-
coupler.
Rewgards, Dana.