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: PLC Count values higher than 999
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
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Count values higher than 999

PLC Count values higher than 999

S counters has max allowed number to count is 999. Write a PLC program to count more than 999 counts for one counter.

Last updated: March 4, 2021 10:57 am
Editorial Staff
PLC Tutorials
No Comments
Share
2 Min Read
SHARE

As known about the S counters that the max allowed number to count is 999.

Contents
Inputs & outputsPLC Count values higher than 999

 Write a PLC program to count more than 999 counts for one counter.

Note: the best practice to learn the PLC programming is to start writing the PLC program, take your time before you review the answer. 

Inputs & outputs

I0.0: count up

I0.1: preset value

PLC Count values higher than 999

PLC Count values higher than 999

Network 01

 There is a counter C0 and there is a count up contact I0.0, whenever a positive edge detected from the count up bit the counter value MW0 is increased by one.

A preset value is loaded the PV of the counter to ease the simulation process, where when the preset contact I0.1 is pressed for one time the counter value is loaded by 997.

Whenever the counter reaches 999 counts 2 things happen.

The reset memory bit M10.0 is energized and resets the counter to zero.

Then a value of 1 is added to the MW2 so that to count the number of each time the counter reaches the maximum counts 999.

Network 02

 Multiply MW2 by 999 so that every time the counter reaches the maximum a 999 counts is added to MW4.

For example if the counter reached the maximum counts twice then the counts value in MW4 is 1998.

Network 03

Add the MW4 to the current counts value of the counter gives the real counter counts calculated so far.

Author: Karim Ali Anwar

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

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

Read Next:

  • Cars Garage Counter
  • Automatic Packing of Bottles
  • Counter with Preset Value
  • PLC CPU Execute Program
  • Motor Stop Interlock
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

Free SCADA Software Download
PLC Program for Alarm Indication in Process Control
Ladder Logic Vs. Other Programming Languages – PLC Basics
100 PLC Quiz Questions : True or False
Difference Between PLC and RTU?
Electrical Drives – Modes, Types, Speed Control Applications
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

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

Smart Spray System using Wecon PLC
HMI Screen Design for Hazardous Applications
Most Asked Questions on SCADA with Answers
Top 100 PLC Objective Questions and Answers
Rockwell Automation Allen Bradley PLC for Smaller and Medium Projects
Push button Motor PLC Logic
PLC Program for Entry and Exit Control of Car Parking
FactoryTalk Studio and SQL Server for Data Logging

Keep Learning

PLC to PLC Communication using S7 Connection

PLC to PLC Communication using S7 Connection PUT & GET Instructions

PLC Example on Switch Program with Timers

PLC Example on Switch Program with Timers

InTouch SCADA Training Course

Free InTouch SCADA Tutorial Course for Beginners

Advanced Skills Required for a PLC Programmer to Get a Job

Advanced Skills Required for a PLC Programmer to Get a Job

Types of Instructions in PLC Programming

Types of Instructions in PLC Programming

Micro PLC

Micro PLC Hardware Configuration

Use of Isolators and Barriers in Electrical Panel

Use of Isolators and Barriers in Electrical Panel

Open Platform Communication (OPC)

Open Platform Communication (OPC)

Learn More

Serial Communication Error Checking Methods and Algorithms

Serial Communication Error Checking Methods and Algorithms

Automation in laboratory

Automating Lab Data Reconciliation: Key Steps to Success

Installation and Maintenance of Control Valves

Installation and Maintenance of Control Valves

Automatic exhaust fan control

XG5000 PLC Programming for Automatic Exhaust Fan

Gas Detector Types

Sensor Technologies in Gas Detectors

Effects of Capillary Tubing on Pressure Measurement

Capillary Tubing Pressure Sensor Temperature & Elevation Problems

quantum computer

Vacuum Technology is Enabling New Era of Ultra-Powerful Computers: Quantum Computing

On-OFF Valve Animation

What is ON/OFF Valve ?

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?