Multiple optocouplers

Thanks all, I think I have a handle on how this works now. I'll try on the breadboard with a couple circuits before committing.