
📢 Fresh Content: PLC Troubleshooting Tips That Work Across Any Platform | Click to read on PLCBlog!
Count parts passing a sensor; after 4 parts the batch is done and a lamp turns on. A reset button starts the next batch. Counters count RUNG EDGES a part sitting on the sensor counts once, not forever.
Your goal
Counting on edges is the difference between 4 parts and 4,000 scans.
I/O for this exercise
| Inputs | |
| PartSensor | Part detect photo-eye |
| ResetBtn | Batch reset button |
| Outputs | |
| BatchDone | Batch complete lamp |
| Counters | |
| C1 · 4ms | Parts counter |