Ladder logic program calculator
When the value reaches above 850.0 then it will activate the output Q0.0, which is directly connected with a hooter or indicator that will give an alarm signal to the operator.Īddition: ADD Adds the two values, IN0 with IN1, and stores the resulting value in the OUT. In the above example, we are getting temperature value in the memory address MD50, we compare the value of MD50 with 850.0. Let’s take a simple example of giving an alarm indication to the operator when the temperature of the furnace reaches above 850-degree centigrade.
Less Than or Equal: CMP <= Compares two values, If the value of IN0 is less than or equal to the value of IN1 then this instruction is logically true. Less Than: CMP = Compares two values, If the value of IN0 is greater than or equal to the value of IN1 then this instruction is logically true. Greater Than: CMP > Compares two values, If the value of IN0 is greater than the value of IN1 then this instruction is logically true. If values are not equal then this instruction is logically true. Less Than or Equal: CMP Tests whether two values are not equal.Out of all these instructions, we will first see the PLC Comparison instructions. The PLC arithmetic functions consist of many instructions like Comparison, Mathematical, Logarithmic, etc. List of Arithmetic Instructions in PLC:Īrithmetic Instructions in PLC Programming.
Arithmetic Instructions in PLC Programming.