In this circuit, using a photoelectric coupler can reach 100G? isolation between TTL and relay circuit, it avoids relay noise and peak voltage influencing TTL circuit. When the TTL input singal is high, Q1 turns on, there is no current in LED, and there is no light incident on detecor, photoelectric diode is in 5G? maximum impedance value. So Q2 is nonc..