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

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Types of math instructions

Types of math instructions - Ladder Logic Tutorial

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

Start my 1-month free trial

Types of math instructions

- [Instructor] The type of operation is usually written at the top of the block to indicate what type of operation is currently used. For source A and source B fields, it can be an input rack location, file address, instruction field, or a constant. For the destination field, it can be an output location, file address, or an instruction field. In terms of operation of the math instruction, it happens every scan when the rung is true. So if we have addition, then it adds every scan when the rung is true. If there is an input in the rung, then as long as the input is true, the add operation works. These are the basic four mathematical functions performed by PLC. The operation of each math instruction is the same. They all have two sources and one destination, only depending on what is selected, the instruction works accordingly. In subtraction, the order of the two sources' value becomes important here. Source B is always…

Contents