Target behavior
Press the button once and the lamp stays lit
What you will learn
This is the same model as Problem 1, with just a button and a lamp.
This time, reproduce a behavior where pressing the button once keeps the lamp lit.
You still only need N.O. contacts and coils, but it takes a little trick.
The ladder you write here is called a self-holding circuit, the most famous circuit in PLC programming. Make sure you learn it!
The wiring is the same as Problem 1, so feel free to reuse it!
Based on this approach, try writing the ladder yourself first.
In the simulator, you can create the wiring and ladder and actually run the 3D equipment model.
| Device | Comment |
|---|---|
| Inputs | |
X0 | Button |
| Outputs | |
Y0 | Lamp |
The row numbers in the figures match the row numbers in the simulator's ladder window.
Below X0 (button), an N.O. contact of Y0 (lamp) itself is placed in parallel. Parallel means "power flows if either one is closed" = OR.
Y0 ON through X0Y0 N.O. contact on row 002 also closesX0 turns OFF, power keeps flowing through the Y0 contact, so the lamp stays litThe sample wiring and ladder data can be downloaded fromGitHuband loaded with "Load wiring" and "Load ladder" in the simulator.
Key points
LDB) of a stop button in series, so that pressing the stop button breaks the hold.