Pages - Menu

July 26, 2020

Explain MOD (modulo) instruction in the PLC.

Explain MOD (modulo) instruction in the PLC.

Application:-Understand the concept of MOD instruction in the PLC. Write the PLC program using ladder diagram language to understand the concept.

Diagram:-






Explanation:-

The MOD instruction is used to divide the stored value in source A by the value stored in source B. After division, it stores the remainder in the destination.

For example Source value is 7 and source B value is 2

Then the remainder is Source A /Source B=7/2=1 (Remainder value).

PLC program:-

Write the ladder program for MOD 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:-

Source A:-MW10

Source B:-MW12

Remainder:-MW14











PLC program Explanation:-

In network 1, we have used MOD instruction. In this Source, A is divided by source b and the remainder will be stored into MW14 register.





No comments:

Post a Comment