From the course: Learning PLC Ladder Logic: 2 Diving Deeper

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: TOD

Solution: TOD - Ladder Logic Tutorial

From the course: Learning PLC Ladder Logic: 2 Diving Deeper

Start my 1-month free trial

Solution: TOD

- [Instructor] Now to program this example, we are going to use counter up, to count the current number of finished boxes. The first thing is to have the box push button, so every time the operator presses on the push button, after the box is finished, the counter counts up. The preset is four because we need four boxes. Please refer to the counter section from PLC Ladder Logic programming course to understand more about the counter operation. Next is to send the data to the LED display. So we use TOD instruction in the next round. The source is the counter accumulator value, because we want to see the current number of finished boxes. And the destination is the output six. Now the LED display will show whatever number shown in the counter accumulated value. The third step is to program the green pilot light to turn on when four boxes are done. So simply adding an XIC instruction with using the counter done bit and the output…

Contents