4-way optocoupler and relay coupler with 2 to 5 channels