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.
Example: ONS with math instructions - Ladder Logic Tutorial
From the course: Learning PLC Ladder Logic: 2 Diving Deeper
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…
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