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.

Solution 1: Use arithmetic instructions

Solution 1: Use arithmetic instructions - Ladder Logic Tutorial

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

Start my 1-month free trial

Solution 1: Use arithmetic instructions

- [Instructor] For the solution, the first step is using FRD to get the values from the thumbwheel switch. This number is actually the time limit we have. Now, since the timer has the time base of 0.1, so for 10 seconds, for example, we need to multiply any number we enter using the thumbwheel switch by 100, and then take the number and put it in the timer preset. For one second, we multiply by 10. For 10 seconds, we multiply by 100. Please refer to the timer section in the Learning PLC Ladder Logic course if you want to learn more about the timer base. So we are going to add a multiply math instruction, multiplying by 10 or 100 depending on what you want to show in the timer. I use 10 to see the timer faster. And the destination is actually the timer presets. Now we need to focus little bit on this rung that has the timer. Since the timer starts timing when the push button is pressed, so we need to add an XIC…

Contents