Three-team quiz buzzer with first-press lockout
Three teams take part in a quiz: pupils, high-school students and professors. To answer a question the team must press its buzzer first; as soon as one team has pressed, the others are unable to light their indicators. Output Y0 turns ON if either input X0 or X1 is pressed (pupils). For the high-school team, output Y1 turns ON when input X2 is pressed. For the professors, both X3 and X4 must be pressed together for Y2 to turn ON. When the host presses input X5, outputs Y0, Y1 and Y2 are all reset. Once one team has been selected, the others must be locked out until the host resets the system.
ShowHide worked solution
Each team has a seal-in latch on its output. An ANY_ON helper bit is the OR of all three team outputs — the /ANY_ON contact appears in every team rung as a global interlock, so the first team to energise locks the other two out. The host reset X5 forces every coil OFF and ANY_ON drops automatically.
Rung 1 — combined "any team locked-in" flag: |---[ Y0 ]----+----( ANY_ON )----| |---[ Y1 ]----+ |---[ Y2 ]----+ Rung 2 — pupils: X0 OR X1, only if no other team active: |---[/ANY_ON]---+----[ X0 ]----+----( Y0 )----| | | | | +----[ X1 ]----+ |---[ Y0 ]------+ (seal-in) Rung 3 — high-school: X2 only: |---[/ANY_ON]---[ X2 ]----+----( Y1 )----| | | |---[ Y1 ]----------------+ Rung 4 — professors: X3 AND X4 simultaneously: |---[/ANY_ON]---[ X3 ]---[ X4 ]----+----( Y2 )----| | | |---[ Y2 ]-------------------------+ Rung 5 — host reset on X5: |---[ X5 ]----(/Y0)----| |---[ X5 ]----(/Y1)----| |---[ X5 ]----(/Y2)----|
As soon as one team’s coil energises, ANY_ON goes true and the /ANY_ON contact in the other rungs opens — preventing any further latching.