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 - Ladder Logic Tutorial
From the course: Learning PLC Ladder Logic: 1 The Basics
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
-
-
-
-
-
-
(Locked)
Timer instruction overview4m 52s
-
(Locked)
Timer status bits (EN, DN, and TT)5m 43s
-
(Locked)
Timer types (TON and TOF) and diagrams3m 49s
-
(Locked)
Use a timer to flash a light4m 36s
-
(Locked)
Counter instruction4m 33s
-
(Locked)
Examples of counter types5m 25s
-
(Locked)
Counter and timer case study5m 43s
-
(Locked)
-
-