September 20, 2020

Explain increment instruction in the PLC using example.

Explain increment instruction in the PLC using an example.

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


Diagram:-










Explanation:-

The increment instruction is used to add value.it will add 1 in input/output value. Generally, this instruction is used to increment the value of the application. For example, if you want to count value periodically. Example purpose we have taken here HMI so the user can enter value and instruction will increment the value.

So for that, we can take the input/output register for example. Here MW 20 is the input/output register.

PLC program:-

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

Input/output value:-MW20


Network 1:- INC instruction operation





 





PLC program Explanation:-

In network 1, we have taken increment instruction. So 1 value will be added into MW 20 register. Hence IN/OUT+1=IN/OUT