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.

Example: ONS with math instructions

Example: ONS with math instructions - Ladder Logic Tutorial

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

Start my 1-month free trial

Example: ONS with math instructions

- [Instructor] Now let's try to see how the one shot instruction comes in handy when working with math instructions. Whenever we use math instructions, and the result is placed back to the same initial address, you can get multiple iteration of the same compounding. So in our example, this causes the instruction to keep adding two to the same tag and will increment many times per second whenever the input is true. To solve this problem, we use one shot instruction. This will ensure that we have the addition happening only one time per scan. Let's take this example. This is a very simple Ladder Logic code. I use a Start Pushbutton that is connected to an addition instruction and I'm going to use N7 address which is the integer in the data table for the simulation software. So in order to see the data table, you click over here and then I'll just drag it so you can see it and then you can select the type of…

Contents