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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Introduction to math instructions1m 25s
-
(Locked)
Types of math instructions1m 40s
-
(Locked)
Considerations with math instructions2m 49s
-
(Locked)
Example: Convert Fahrenheit to Celsius40s
-
(Locked)
Solution: Convert Fahrenheit to Celsius1m 52s
-
(Locked)
Example: Use arithmetic instructions1m 12s
-
(Locked)
Solution 1: Use arithmetic instructions2m 28s
-
(Locked)
Solution 2: Use arithmetic instructions2m 52s
-
(Locked)
ONS: One-shot instruction2m 9s
-
(Locked)
Example: ONS with math instructions3m 22s
-
-
-
-
-