To study the working of Allen Bradley Math functions (ADD, SUB, MUL, DIV, SQR & NEG) using simple example in programmable logical controllers (PLC).
There are three parameters in each block,
Source A –Address of the first Value
Source B –Address of the second value
Destination (Dest) – Address where result of the function will store.
Add block is used to do the Addition of the two values stored in source A and source B and store the output in destination address.
Sub block is used to do the Subtraction of the two values stored in source A and source B and store the output in destination address.
MUL block is used to do the Multiplication of the two values stored in source A and source B and store the output in destination address.
DIV block is used to do the Division of the two values stored in source A and source B and store the output in destination address.
SQR block is used to find the square root of the value stored in source address and results the value in destination address.
NEQ block is used to negate the value stored in source address and results the value in destination.
When start switch is pressed,
When Start switch is pressed, N7:0 and N7:1 get added and store the value in N7:2.
Value stored in N7:2 get subtracted with value stored in N7:1 and results the value in N7:3.
Value stored in N7:3 get multiplied with value stored in N7:1 and results the value in N7:4.
Value stored in N7:4 get divided by value stored in N7:0 and results the value in N7:5.
Value stored in N7:5 get squared and results the value in N7:6.
Value stored in N7:6 get negated and results the value in N7:7.
Less than block (Source B value sets to 0) is used to check whether the result is negative and results the output in indication lamp (O: 0/0)
Greater than block (Source B value sets to 0) is used to check whether the result is positive and results the output in indication lamp (O: 0/1)
We can use this example program to understand the working Math block functions in AB PLC.
If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.
You can also follow us on Facebook and Twitter to receive daily updates.
Read Next:
Single Push button Ladder Logic
Masked Move Instruction in PLC
VFD simulator download: Master the online tool from the Yaskawa V1000 & programming software for…
The conveyor sorting machine is widely used in the packing industries using the PLC program…
Learn the example of flip-flop PLC program for lamps application using the ladder logic to…
In this article, you will learn the STAR DELTA programming using PLC controller to start…
Lube oil consoles of rotary equipment packages in industrial process plants are usually equipped with…
Rotating equipment packages such as pumps, compressors, turbines need the lube oil consoles for their…