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
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

What is the DDE Protocol?
How to Blink Lights in Ladder Logic?
PLC Example on Switch Program with Timers
Basics of Ladder Diagram in PLC Programming
#4 PLC Best Practices – Use PLC Flags as Integrity Checks
Schneider Electric: Car Parking System with Calculations in PLC
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

PLC Logic GATE Program
Modbus Communication between Delta PLC with VFD
Programmable Logic Controller (PLC) Scan Time – Types, Theory
Allen Bradley Powerflex VFD
Siemens Drum block for Sequencer Operation
How to Read the PLC Datasheet? – Important Notes About PLC
Basic Arithmetic Programming in Mitsubishi PLC
Start the Counting from a Preset Value in PLC

Keep Learning

What is Loop Checking

What is Loop Checking?

Industrial Automation and Control Systems (IACS)

Industrial Automation and Control Systems (IACS)

Safety PLC Programming steps

Safety Door Interlock PLC Program

Field Instruments Questions and Answers

Control Room and Field Instruments Questions and Answers

FBD Logic

Why different PLC Programming Languages were Developed?

Save and BR Memory in Siemens PLC Programming

SAVE and BR Memory Instructions in Siemens PLC Programming

OB10 Time of Day Interrupt

Tia Portal – OB10 Time of Day Interrupt Organization Block

Industrial Control Systems Security

Comparing ICS and IT Systems Security

Learn More

DC Generator

DC Generator

Basic Components of HVAC System

Basic Components of HVAC System

Address Overlapping in Tia Portal

How to Check Address Overlapping in Tia Portal?

Common Causes of Imperfect Bends

Instrument Tube Fitting Installation – Part 3

Vibration Analysis

Top 100 Vibration Analysis Questions and Answers

OPC Communication Interview Questions Answers

OPC Communication Interview Questions and Answers

Instrumentation Engineer in Process Plant Project

Instrumentation Engineer in Process Plant Project

SCADA Standards

SCADA for Substation Automation

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?