A PLC student must implement a two-phase signalized intersection controller as their first timer sequencing lab.
그 이면의 의사결정을 읽어 보세요.
Phase bits (PHASE_NS, PHASE_EW) set/reset by a master sequence rung — decouples phase logic from output logic.
Green and yellow share the same phase bit; yellow enabled only when green timer DN fires.
XIO on timer.DN ensures each light turns off exactly when its timer expires, preventing simultaneous green outputs.
Add a pedestrian-call XIC to extend the green phase; add a left-turn arrow rung for a 4-phase intersection.