Beruflich Dokumente
Kultur Dokumente
10
PLC Math Instructions
Objectives
Program the add instruction in the PLC ladder logic diagram. Program the subtract instruction in the PLC ladder logic diagram. Program the multiply instruction in the PLC ladder logic diagram. Program the divide instruction in the PLC ladder logic diagram.
Addition
Add (ADD) instruction has three operands:
Two operands hold source data (Source A and Source B), which are added together. Either both sources can be registers or one source can be a register while the other one is a number. Third operand is the destination.
Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Addition (Cont.)
Add instruction for Allen-Bradley SLC 500 series PLC displayed in block format.
Subtraction
Subtract (SUB) instruction has three operands:
Two operands, Source A and Source B, hold the source data. Content of Source B is subtracted from Source A. Result is placed in the destination.
Subtraction (Cont.)
Subtract instruction for the Allen-Bradley SLC 500 series PLC displayed in block format.
Multiplication
Multiply (MUL) instruction has three operands:
Two operands hold the source data (Source A and Source B). Either both sources can be registers, or one source can be a register while the other one is a number. Destination must be a register.
Multiplication (Cont.)
Multiply instructions in SLC 500 series PLCs displayed in block format.
Division
Divide (DIV) instruction has three registers:
Two registers hold the source data (Source A and Source B). Either both sources can be registers or one source can be a register while the other one is a number. Destination must be a register.
Division (Cont.)
Divide instructions in SLC 500 series PLCs displayed in block format.