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
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
Notification Show More
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
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

LIFO Instruction in PLC
Examples of PLC Programming using Boolean Functions
PLC Analog I/O and Network I/O
OMRON PLC Tutorial: Car Parking System Application
Factory Acceptance Test (FAT) of a PLC Panel
PLC Data Comparison Instructions
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

PLC Structured Text Program for Output Generation via Equations
PLC Programming Videos
Pause the Timer PLC Ladder Logic
PLC Programming to Control Lights in a Sequence
Difference Between PLC and RTU?
PLC Programming for Sequential Batch Mixing System
Safety Considerations in PLC System Design
Siemens PLC Course for Beginners: Problems and Solutions

Keep Learning

Counter Count Down Bit

Down Counter PLC Program

Save and BR Memory in Siemens PLC Programming

SAVE and BR Memory Instructions in Siemens PLC Programming

PLC Program for Fishpond Water Level Monitoring System

PLC Program for Artificial Fishpond Water Level Monitoring System

Free Download SCADA Softwares

Free SCADA Software Download

VFD Pros and Cons - Variable Frequency Drives

VFD Pros and Cons – Variable Frequency Drives

PLC Program to Control Gas Pressure using Closed-Loop

PLC Program to Control Gas Pressure using Closed-Loop

Siemens SIMATIC S7 PLC GSD File

How to import GSD files into the TIA Portal? – Siemens PLC

Count the Number of Cartons in a Storage Area PLC Logic

Count the Number of Cartons in a Storage Area PLC Logic

Learn More

Fire Damper

Fire Dampers in Fire Protection

4-20mA Current Loop for Flow Transmitter and Control Valve Positioner

4–20 mA Process Control Loops

Insulation Resistance Test

What is an Insulation Resistance Test? – Types, Applications

Download Free HMI software – CODESYS

Ultrasonic Level Transmitters Installation

Ultrasonic Level Transmitter Principle, Limitations, Calibration and configuration

Classification of Solenoid Valves

Classification of Solenoid Valves

Top 100 Zigbee Projects for Engineering Students

Top 100 Zigbee Projects for Engineering Students

UV Visible Spectrometers Questions and Answers

UV Visible Spectrometers Questions and Answers

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?