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: What are High-Speed Inputs in PLC?
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 > What are High-Speed Inputs in PLC?

What are High-Speed Inputs in PLC?

In this post, we will see the concept of high-speed inputs in a PLC. Also learn high-speed counter (HSC).

Last updated: September 28, 2022 4:14 pm
Viral Nagda
PLC Tutorials
No Comments
Share
9 Min Read
SHARE

In this post, we will see the concept of high-speed inputs in a programmable logic controller (PLC).

Contents
High-Speed Inputs in PLCHigh-Speed Counter (HSC)Selection of Input Type Filter Time Synchronize InputEnable InputThreshold ValueReflex OutputCounting Modes

PLC has a function of counter embedded in its software library. A counter is nothing but a function that counts things. For example, if we assign a sensor to a digital input of PLC.

The counter is configured in the PLC to work as a step-up counter. That means, whenever the sensor changes a value, the counter will increment it’s value.

The counter is then programmed to count only positive-edge change (whenever the sensor goes from low to high, the counter will increment).  

So, refer to the below image, the counter increments whenever the sensor at input changes from 0 to 1 (low to high). Thus, we get the number of times the sensor has been sensed by the PLC.

High Speed Counter in PLC

High-Speed Inputs in PLC

But, there are applications in PLC where input will change its value so fast that a normal counter of the type discussed will not be able to detect the change. This occurs because of the scan time of PLC execution.

A counter is written in a normal section of the PLC program and the section has a typical scan time of 5-10 milliseconds.

So, suppose if an input changes its state frequently within this time, then the counter will detect only some changes and thus, give a wrong value at the output.

Such types of devices are encoders, high-speed precision sensors, proximity sensors, laser sensors, etc.

High-Speed Counter (HSC)

For this purpose, we have to use a high-speed counter (HSC) in PLC. A High-Speed Counter is a function that is used to count such high-speed inputs in a PLC.

So, suppose we have 16 digital inputs in a PLC CPU, 2-4 inputs that can be configured as high-speed inputs. That means you can connect such devices only to these inputs.

The wiring of a high speed input is categorised into two types – single phase and dual phase. Single phase means a single digital input will be used to increment or decrement the counter. Dual phase means two digital inputs will be used in combination to increment or decrement the counter.

Consider a proximity sensor as an example of single-phase input.  Every change of state (low to high) for that sensor on the digital input assigned will affect the counter.

A dual-phase input can be considered as an encoder (You can use the encoder as a single-phase input too).

An encoder has three-phase outputs from it. So, if one phase output of the encoder (A) is used to count in the forward direction and the other phase output (B) is used to count in the reverse direction, the counter in the PLC will work in that way. This means, if there is an input from A, then the counter will increment and if there is an input from B, then the counter will decrement.

Let us consider some configuration parameters in a high speed counter for more detailed information.

Selection of Input Type

As discussed earlier, it is used to select the type of wiring and configuration that will be done to work the counter accordingly.

Some of the most common modes used are – single-phase, A=Up and B=Down, A=Pulse and B=Direction, Normal Quadrature X1, Normal Quadrature X2, Normal Quadrature X4, Reverse Quadrature X1, Reverse Quadrature X2, Reverse Quadrature X4, etc.

 Filter Time

The filter time determines the maximum counting frequency that will be taken by the counter. Typical values range from 0.002 ms to 4 ms (200 kHz to 100 Hz).

The PLC shows the corresponding maximum frequency for that. This means, suppose you select 0.002 ms and the frequency corresponding is 200 KHz.

The PLC will take a maximum of 200000 pulses per second from that digital input at a time. In short, it will take only one pulse per 0.002 ms interval.

So, indirectly, the frequency increases as time decreases. This improves the efficiency, avoids noise in the system and thus, reduces the effect of bounce on the input count.

 Synchronize Input

A digital input can be configured to synchronize or reset the counter value. When the input assigned goes high from low, the counter is reset.

Enable Input

As the counter is counting high-speed pulses, there are occasions when even a slight movement of the device will increase the counter value to a great extent.

Suppose, you are using an encoder. An encoder must count the motion only when the system is running, and not when the system is in stop condition. If by chance, the encoder is moved by hand from someone, it will bring unwanted counts in PLC.

To avoid that, a digital input in PLC can be configured as an enable input. That means, the counter will take counts from the encoder only when there is high potential at this input or in simple terms, this input is high.

Threshold Value

Suppose you are using logic to initiate a system when the encoder has reached 10000 counts.

Now, if you use a normal comparator in the program to compare set value and encoder counts, the comparator will give an output after say 10500 counts. This happens due to PLC scan time.

A comparator is written in a normal PLC section. So, to bring accuracy, there is a provision to set the value in the high-speed counter itself. When the counter reaches 10000, then it will immediately give an output.

Reflex Output

As discussed earlier, based on a threshold value, the counter provides an output called reflex output.

You can program it in generally three ways – set reflex output if the count is less than a threshold; set reflex output if the count is between two threshold values or set reflex output if the count is more than a threshold value.

Due to these internal functions, you can achieve greater accuracy as the counter itself is doing all the functions. The reflex output can be a soft memory bit or a physical hardware digital output from PLC.

Counting Modes

This defines how the counter will function according to all the parameters set. The most general ones used are – one-shot, modulo loop, free large, event, frequency meter, etc.

All these parameters vary from PLC to PLC and each one of it as it’s working style.

Thus, a high-speed input is widely used in machine automation for achieving accuracy within a specified time; as mass production requires high output in a short span of time with maximum possible precision.

Author: Viral Nagda

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:

  • Braking Theory in VFD
  • How to Prevent Ground Loop?
  • Configuration of Siemens VFD
  • Free Mitsubishi PLC Training Course
  • Problem on PLC, HMI, VFD, and Motor
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

Problem on PLC, HMI, VFD, and Motor Circuit
T Flip Flop PLC Ladder Diagram
Industrial Networking and Wireless Interview Questions
Structured Text PLC Programming for Two-Tanks Level Application
FOR DO Statement in SCL Language
Overview of Industrial Control Systems
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

Schneider Electric: Car Parking System with Calculations in PLC
How to do Scaling for Analog Input in RSLogix 500?
PLC Sequence Programming Ladder Logic
Inside the PLC Control Panel: How Much Do You Know?
Siemens PLC Course for Beginners: Problems and Solutions
Automatic Curtain Control – PLC Programming Solution
Automate Batch Mixing with Repeated Cycles in Omron PLC
How to Get a PLC Programming Job With NO Experience?

Keep Learning

21 CFR in SCADA and HMI Systems

What is 21 CFR in SCADA and HMI Systems?

Extended Timer Logic in PLC

Extended Timer Logic in PLC

How-to do Security of SCADA Systems

How-to do Security of SCADA Systems?

Faceplate in WinCC

Siemens HMI Training – Using UDTs with Faceplates

Ladder Diagram PLC program

PLC Counter Instructions

Automation Engineer Troubleshooting Tips

Best Way to Build Troubleshooting Mindset for Automation Engineer

Run 4 Motors Sequentially from Same Push button PLC Program

Run 4 Motors Sequentially from Same Push button PLC Program

Allen Bradley PLC Emulator

How to Work with Allen Bradley RsLogix Emulator?

Learn More

Code Block Comparison

Compare Online and Offline PLC Programs

Programmable Logic Controller (PLC) Questions and Answers – 9

Electrical Machines Questions and Answers

Alternator Voltage Regulation Quiz

Pressure-sensing level transmitter

Moving Pressure Sensing Level Transmitter from Top to Bottom

What is Electrical Busbar

What is Electrical Busbar? Types, Advantages, Disadvantages

Corona-Ring-on-Surge-Arresters

Corona Ring on Surge Arresters and other EHV equipment

Static and Temp Variables in PLC

Static and Temp Variables in PLC

History of Measurement

History of Measurement

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?