Pages - Menu

July 26, 2020

Multiplication of two operands using MUL instruction in the PLC.

Multiplication of two operands using MUL instruction in the PLC.

Application:-Explain MUL instruction in the PLC. Write PLC program for explanation using ladder diagram language.

Components:-Programmable logic controller, HMI panel, Ethernet cable, 24 V DC power source.

Diagram:-










Explanation:-

The MUL instruction is used for the multiplication of two values for any data records. For example, we want a multiplication of two values. We have taken HMI for entering data, here we have taken value 1 and value 2 are the data fields and result data field will show the result of the instruction.

Once the instruction is executed result will be displayed in the result output field.

 

PLC program:-

Write the ladder program for MUL instruction using ladder diagram language. Here for ladder logic, we can use any supported PLC system like S7-1200, S7-1500, or any other PLC which can support this instruction. In our application, we have used S7-1200 PLC for reference.

M Memory:-

Value 1:-MW10

Value 2:-MW12

Result:-MW14











PLC program Explanation:-

In-network 1 we have taken MUL instruction for multiplication of two different values. Value 1(MW10) will be entered from the HMI and value 2 (MW12) will be entered from the HMI. Instruction is executed and generates output in the MW 14 word.

You can use MUL instruction for any application in which you need to calculate the multiplication of two values.



















































No comments:

Post a Comment