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

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Considerations with math instructions

Considerations with math instructions - Ladder Logic Tutorial

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

Considerations with math instructions

- [Instructor] There are a couple of things I want to point out about the math instructions. For the sources and destination, one recommendation is to use different tag names for each one, otherwise it keeps adding to itself. If you have to use the same tag name we will learn how to overcome this later when we discuss the one shot instruction. Here's a demo of how fast the addition happens when adding to the same tag name. I'll click on the data table so we can see how fast the addition happens. I'll reset it back to zero so we start from zero. And then I selected the integer value, it's the value that I'm choosing for my addition instruction. So as soon as I hit on the RUN button you can see the addition happens very fast. One of the recommendations, if we want to control when the rung is true, is to add an XIC instruction before the math instruction. The input instruction can be switch address, the done bit of the…

Contents