Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Design Counters in PLC Programming With a Move Instruction
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Design Counters in PLC Programming With a Move Instruction

Design Counters in PLC Programming With a Move Instruction

In this article, we will learn how to design counters in PLC programming with a move and add instruction.

Last updated: August 8, 2023 3:01 pm
Viral Nagda
PLC Tutorials
1 Comment
Share
5 Min Read
SHARE

Counters are a very important instruction in PLC programming. You require it in almost every logic. Be it counting something to counting events, counters form an important part of PLC programming.

Contents
CountersDesign Counters in PLC With a Move Instruction

Because event count is used in many applications and it helps PLC programmers save time in writing cumbersome coding. But, many times, it is always required to find a backup solution for a plan if it does not work.

In the case of counters too, a PLC programmer must know a backup logic if it does not work properly. For that, two instructions can be combined and written – move and addition.

In this post, we will learn how to design counters in PLC programming with a move and add instruction.

Counters

First of all, we will see a counter instruction on how it is written. Refer to the below image. As you can see, a counter has three inputs – count, reset, and set value; and has two outputs – done and current value.

A count input is required to provide the counter with a pulse for counting it, a reset input is required to reset the counter, and a set value is required for feeding the counter with set counts. A done output is used to denote that the counter has finished counting and the current value shows the present value of counts that the counter has counted till now.

How to Use Counters in PLC

When count input is received, the counter increments by a value. The count input works on a pulse basis and not on a continuous basis. When the counter reaches its set count, then the output done bit goes on.

The only way to then turn it off is by giving the reset input. The count value will become zero on this input and the counter resets due to this. It is to be noted that even if the count has been reached and you still give count input, then too the count will go on incrementing.

You can also see that a comparison block is used after counter output, which allows it to pass to the final bit to be turned on. This prevents the final bit from turning on unnecessarily if the set count is zero.

Design Counters in PLC With a Move Instruction

Now, we will see how to write this same coding with the help of move and add instructions. Refer to the below image. In the first rung, the count input is replaced with an add instruction.

The addition will happen if the input condition is true, and that too with a pulse. Pulse must be used, otherwise, continuous addition will go on and there will be no control over it.

Design Counters in PLC Programming With a Move Instruction

In the second rung, it compares whether the set counts have been reached or not. It also checks whether the set count is more than zero or not. If these conditions are true, then the output turns on.

In the third rung, the counter value becomes zero on the receipt of the corresponding inputs. This equals the operation of reset input.

These three rungs are enough to replicate the function of a counter. You can use either a counter or this PLC logic, according to your needs. But, it is to be noted that we can program a counter by writing this way too.

In this way, we saw how to write counters in PLC programming with a move and add instruction.

If you liked this article, then please subscribe to our YouTube Channel for Instrumentation, Electrical, PLC, and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Omron PLC Online Training Course
  • Difference Between PNP and NPN Sensor
  • Light Tower in Industrial Automation
  • Batch Simulator PLC Example Program
  • PLC Program for Stage Control Project
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

Compare Modbus, Fieldbus, and Profibus
How to Communicate with Excel from RsLinx?
How to Use ModScan Software for Testing Modbus Communication?
PLC Interlock Logic with First Input Priority
PLC Mixing Logic in Liquids on EcoStruxure Machine Expert-Basic
Delta HMI and VFD Control with Modbus
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • NUNO SILVA says:
    August 9, 2023 at 1:44 pm

    More products information

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Network Switch Requirement in SCADA and DCS Architecture
Job Skills Required for Industrial Electrical Maintenance
Move, Move Bit, Move Digit – Examples of Omron PLC Programs
PLC Ladder Logic for Opposite Acting Control Valves Application
Transferring Data Across PLC Systems – TSEND_C and TRCV_C
Wet Contacts and Dry Contacts in PLC Systems
How to Blink Lights in Ladder Logic?
Electrical Switches Principle & Types

Keep Learning

What is PLC

What is a PLC? – Programmable Logic Controller

How to Prevent Ground Loops in Analog Circuits?

How to Prevent Ground Loops in Analog Circuits?

Surface Grinding Process using PLC Program

Surface Grinding Process using PLC Program

Ethernet IP Commissioning Tool software

How to Configure IP Address in Rockwell PLC?

FBD Logic

Why different PLC Programming Languages were Developed?

Allen Bradley Powerflex VFD

Allen Bradley Powerflex VFD

Communication between Factory IO and Siemens Tia Portal

Communication between Factory IO and Siemens Tia Portal

How to Update the Firmware Version of your PLC

How to Update the Firmware Version of your PLC? – TIA Portal

Learn More

Thermocouple Law of Intermediate Metals

Thermocouples Law of Intermediate Metals

feedforward control theory

Proportioning Feedforward action

grounded thermocouple junction

Types of Thermocouple Measuring Junction

Humidity sensor Working Principle

Humidity Sensor Working Principle

Laser Cutting Precision and Accuracy

Benefits of Steel Laser Cutting

CNC Machining Deep Hole Drilling

Deep Hole Drilling Ideal Methods For CNC Machining

PLC TB Wiring

Electrical Signal and Control Wiring

Marshalling Panel

What is Marshalling Cabinet?

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?