From the course: Learning PLC Ladder Logic: 1 The Basics

Unlock the full course today

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

Examples of counter types

Examples of counter types - Ladder Logic Tutorial

From the course: Learning PLC Ladder Logic: 1 The Basics

Start my 1-month free trial

Examples of counter types

- [Instructor] So now we'll go through the examples for counter up, counter down, and up and down counter. So let's see an example of using counter up in PLC programming. For example let's say we have a sensor on a conveyor to count 24 cans that go into a case. And while the counter is counting there's a yellow light that turns on indicating that the case is not full yet. Once the counter reaches 24 cans then there is a green light indicates that the case is full and it's ready to go to the next step. We need to have a reset push button that can reset the counter to fill in another case. So in the PLC program we have a sensor as an input. Note here we're using an XIC instruction and having the counter as an output for that specific run. We need to give the name to the counter and specify the preset as 24. After using the counter we need to associate the yellow light to the counter while it's counting. So the bit that we use here is counter up bit. Remember that we nee to use this name…

Contents