Introduction
PLC (Programmable Logic Controller) का उपयोग Industrial Automation में Machines, Motors, Pumps, Conveyors और विभिन्न Industrial Processes को Automatic Control करने के लिए किया जाता है।
PLC Programming में Timer और Counter बहुत महत्वपूर्ण Instructions होते हैं। Timer का उपयोग किसी Operation को निर्धारित समय के बाद Start, Stop या Control करने के लिए किया जाता है, जबकि Counter का उपयोग किसी Event, Product, Signal या Machine Operation की संख्या Count करने के लिए किया जाता है।
उदाहरण के लिए:
-
Motor को 10 सेकंड बाद Start करना।
-
किसी Pump को 30 सेकंड तक चलाना।
-
Conveyor पर आने वाले Products की Counting करना।
-
किसी मशीन को 5 बार Operate करने के बाद Stop करना।
-
Tank Filling Process में Delay देना।
-
किसी मशीन के Cycle को Count करना।
इस Article में हम PLC Timer और Counter के Types, Working Principle, PLC Logic तथा Practical Examples को आसान भाषा में समझेंगे।
PLC Timer क्या है?
PLC Timer एक Programming Instruction है जिसका उपयोग किसी Logic Condition के आधार पर Time Delay Generate करने के लिए किया जाता है।
जब Timer को Input Condition प्राप्त होती है, तो Timer निर्धारित समय के अनुसार अपना Timing Operation शुरू करता है। Preset Time पूरा होने पर Timer का Output या Status बदल सकता है।
PLC Timer का उपयोग Industrial Automation में Delay, Sequence Control, Motor Operation, Pump Control और Machine Timing के लिए किया जाता है।
PLC Timer के मुख्य Parameters
| Parameter | Description |
|---|---|
| Timer Input (IN) | Timer को Start करने वाली Condition |
| Preset Time (PT) | निर्धारित समय |
| Elapsed Time (ET) | Timer द्वारा Count किया गया समय |
| Timer Output (Q) | Timer का Output Status |
| Reset | Timer को Reset करने का Function |
Timer की उपलब्ध Parameters और उनका Behavior PLC Brand तथा Timer Instruction पर निर्भर करता है।
PLC Timer के प्रकार
PLC Programming में सामान्यतः तीन प्रमुख Timer Instructions पढ़ाए जाते हैं:
-
TON – On Delay Timer
-
TOF – Off Delay Timer
-
TP – Pulse Timer
1. TON Timer (On Delay Timer)
TON का Full Form Timer ON Delay है।
TON Timer का उपयोग Input Condition ON होने के बाद निर्धारित समय Delay देकर Output ON करने के लिए किया जाता है।
जब Timer Input ON होता है, तो Timer Timing शुरू करता है। यदि Input लगातार ON रहता है और Preset Time पूरा हो जाता है, तो Timer Output ON हो जाता है।
यदि Timing Complete होने से पहले Input OFF हो जाए, तो सामान्य TON Timer Reset हो जाता है और Elapsed Time वापस Zero हो जाता है।
TON Timer Working
Input ON → Timer Start → Preset Time Complete → Output ON
TON Timing Diagram
Input:
____|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|____
Timer:
____|---- Timing ----|‾‾‾‾‾‾‾‾|____
Output:
________________|‾‾‾‾‾‾‾‾‾‾‾‾|____
Delay
TON Timer Example
मान लीजिए आपको किसी Motor को Start Command मिलने के 5 सेकंड बाद Start करना है।
-
Start Command ON होते ही Timer Start होगा।
-
Timer 5 Seconds तक Timing करेगा।
-
5 Seconds Complete होने के बाद Timer Output ON होगा।
-
Timer Output के माध्यम से Motor Contactor को Energize किया जा सकता है।
TON का उपयोग कहाँ होता है?
-
Motor Start Delay
-
Pump Start Delay
-
Sequential Motor Starting
-
Conveyor Delay
-
Alarm Delay
-
Process Timing
-
Automatic Machine Control
2. TOF Timer (Off Delay Timer)
TOF का Full Form Timer OFF Delay है।
TOF Timer का उपयोग Input Condition OFF होने के बाद Output को निर्धारित समय तक ON रखने के लिए किया जाता है।
जब TOF Input ON होता है, तो सामान्य TOF Behavior के अनुसार Output ON रहता है। जब Input OFF होता है, तो Timer Timing शुरू करता है। Preset Time Complete होने के बाद Output OFF हो जाता है।
TOF Timer Working
Input ON → Output ON
Input OFF → Timer Start → Preset Time Complete → Output OFF
TOF Timer Example
मान लीजिए किसी Exhaust Fan को Main Machine बंद होने के बाद 20 Seconds तक चलाना है।
-
Machine Running Signal ON होने पर Fan ON होगा।
-
Machine बंद होने पर TOF Timer Start होगा।
-
Fan अगले 20 Seconds तक चलता रहेगा।
-
20 Seconds Complete होने के बाद Fan OFF हो जाएगा।
TOF Timer के Applications
-
Cooling Fan Delay
-
Exhaust Fan Delay
-
Machine Shutdown Delay
-
Lubrication System
-
Conveyor Shutdown Sequence
-
Auxiliary Equipment Control
3. TP Timer (Pulse Timer)
TP का Full Form Pulse Timer है।
TP Timer का उपयोग Input Trigger मिलने पर निर्धारित समय की Pulse Generate करने के लिए किया जाता है।
Trigger मिलने पर Timer Output ON होता है और Preset Time तक ON रहता है। Preset Time Complete होने के बाद Output OFF हो जाता है।
इसका Output सामान्यतः निर्धारित Pulse Duration के लिए ON रहता है, भले ही Trigger Input बाद में OFF हो जाए। Retriggering का Behavior PLC Instruction और Configuration पर निर्भर करता है।
TP Timer Working
Trigger → Output ON → Preset Time → Output OFF
TP Timer Example
मान लीजिए किसी Solenoid Valve को 3 Seconds के लिए Operate करना है।
-
PLC को Trigger Signal मिलता है।
-
TP Timer Start होता है।
-
Output 3 Seconds तक ON रहता है।
-
3 Seconds बाद Output Automatically OFF हो जाता है।
TP Timer Applications
-
Solenoid Valve Pulse Control
-
Buzzer Pulse
-
Short Duration Output
-
Automatic Lubrication Pulse
-
Pneumatic Control
-
Machine Trigger Signals
TON, TOF और TP Timer में अंतर
| Parameter | TON | TOF | TP |
|---|---|---|---|
| Full Form | On Delay | Off Delay | Pulse Timer |
| Input ON | Timing शुरू | Output ON | Pulse Trigger |
| Output ON | Delay Complete होने पर | Input ON होने पर | Trigger पर |
| Input OFF | सामान्यतः Timer Reset | Off Delay शुरू | Pulse Duration के अनुसार |
| Function | ON Delay | OFF Delay | Fixed Duration Pulse |
| Application | Motor Start Delay | Fan Stop Delay | Valve Pulse |
PLC Counter क्या है?
PLC Counter एक Programming Instruction है जिसका उपयोग Events या Signals की संख्या Count करने के लिए किया जाता है।
जब PLC को किसी निर्धारित Input Event की आवश्यकता के अनुसार Pulse या Trigger प्राप्त होता है, तो Counter अपनी Count Value बढ़ा या घटा सकता है।
Counter का उपयोग Product Counting, Machine Cycles, Conveyor Systems, Packaging Machines और Production Monitoring में किया जाता है।
Counter के मुख्य Parameters
| Parameter | Description |
|---|---|
| CU | Count Up Input |
| CD | Count Down Input |
| PV | Preset Value |
| CV | Current Value |
| Q | Counter Output |
| Reset (R) | Counter Reset |
ये Parameters मुख्यतः IEC-Style Counter Instructions में उपयोग होते हैं। अलग-अलग PLC में Counter की Instruction और Addressing अलग हो सकती है।
PLC Counter के प्रकार
PLC Programming में सामान्यतः तीन प्रमुख Counter Instructions होते हैं:
-
CTU – Count Up Counter
-
CTD – Count Down Counter
-
CTUD – Count Up/Down Counter
1. CTU Counter (Count Up Counter)
CTU का Full Form Count Up Counter है।
CTU Counter का उपयोग Input Pulse या Event की संख्या को Increment करने के लिए किया जाता है।
हर Valid Count Event पर Counter की Current Value बढ़ती है।
जब Current Value Preset Value के बराबर या उससे अधिक हो जाती है, तो Counter Output ON हो सकता है।
CTU Working
Input Pulse → Count Increase → Preset Value Achieve → Output ON
CTU Example
मान लीजिए एक Conveyor पर Products Count करने हैं।
आपको 10 Products Count होने के बाद Conveyor को Stop करना है।
-
Sensor पहला Product Detect करता है → Count 1
-
दूसरा Product Detect करता है → Count 2
-
तीसरा Product Detect करता है → Count 3
-
इसी प्रकार Count बढ़ता रहता है।
-
जब Count 10 हो जाता है, तो Counter Output ON हो जाता है।
-
PLC Program Conveyor को Stop कर सकता है।
CTU Applications
-
Product Counting
-
Bottle Counting
-
Packaging Machine
-
Conveyor Automation
-
Production Monitoring
-
Machine Cycle Counting
2. CTD Counter (Count Down Counter)
CTD का Full Form Count Down Counter है।
CTD Counter का उपयोग निर्धारित Count Value से Count को Decrease करने के लिए किया जाता है।
जब Counter को Load या Preset Value दी जाती है, तो यह निर्धारित Value से Counting शुरू कर सकता है। प्रत्येक Valid Count Event पर Current Value घटती है।
जब Count निर्धारित Limit तक पहुँचता है, तो Counter Output या Status बदल सकता है।
CTD Working
Load Preset Value → Count Input → Current Value Decrease → Zero Achieve
CTD Example
मान लीजिए किसी Packaging Machine में 20 Boxes की Counting करनी है।
-
Counter में 20 Load किया जाता है।
-
प्रत्येक Box Sensor से Detect होने पर Counter 1 कम होता है।
-
20 → 19 → 18 → 17 → आगे इसी तरह।
-
जब Count Zero तक पहुँचता है, तो PLC Batch Complete Signal Generate कर सकता है।
CTD Applications
-
Batch Counting
-
Remaining Product Counting
-
Packaging System
-
Material Quantity Monitoring
-
Production Batch Control
3. CTUD Counter (Count Up/Down Counter)
CTUD का Full Form Count Up/Down Counter है।
CTUD Counter का उपयोग एक ही Counter Instruction से Count को Increase और Decrease दोनों करने के लिए किया जाता है।
इसमें:
-
Count Up Input (CU)
-
Count Down Input (CD)
-
Preset Value (PV)
-
Current Value (CV)
-
Reset (R)
-
Load (LD)
जैसे Parameters हो सकते हैं।
CTUD Working
-
CU Input → Count Increase
-
CD Input → Count Decrease
-
Reset → Count Reset
-
Load → Preset Value Load
CTUD Example
मान लीजिए एक Storage Area में Products की संख्या Track करनी है।
-
Entry Sensor Product आने पर Count बढ़ाता है।
-
Exit Sensor Product बाहर जाने पर Count घटाता है।
-
PLC Current Product Quantity Monitor करता है।
-
यदि Storage Capacity पूरी हो जाती है, तो High Count Alarm Generate किया जा सकता है।
CTUD Applications
-
Warehouse Product Monitoring
-
Parking System
-
Conveyor Entry/Exit Counting
-
Material Tracking
-
Production Quantity Monitoring
CTU, CTD और CTUD Counter में अंतर
| Parameter | CTU / CTU-Style Count Up | CTD | CTUD |
|---|---|---|---|
| Function | Count Increase | Count Decrease | Up और Down |
| Count Direction | बढ़ता है | घटता है | दोनों |
| Input | Count Pulse | Count Pulse | CU और CD |
| Preset | Count Limit | Initial/Loaded Value | Preset Value |
| Application | Product Counting | Batch Remaining | Inventory Tracking |
Note: CTU और CTD Naming अलग PLC Software में भिन्न हो सकती है। IEC-Style Counters में CTU, CTD और CTUD सामान्य नाम हैं, जबकि Siemens, Delta, Mitsubishi आदि के PLC Software में Instructions तथा Counter Implementation अलग हो सकती है।
PLC Timer का Practical Example – Motor Start Delay
मान लीजिए एक Pump को Start Command मिलने के 10 Seconds बाद Start करना है।
Logic
-
Start Push Button Press
-
TON Timer Start
-
10 Seconds Delay
-
Timer Output ON
-
Motor Contactor ON
Working Sequence
| Time | Condition | Result |
|---|---|---|
| 0 sec | Start Button Press | Timer Start |
| 1 sec | Timer Running | Motor OFF |
| 5 sec | Timer Running | Motor OFF |
| 10 sec | Preset Complete | Motor ON |
इस Logic में Timer Motor को Start होने से पहले Delay प्रदान करता है।
PLC Counter का Practical Example – Conveyor Product Counting
मान लीजिए Conveyor पर 50 Products Count करने हैं।
Devices
| Device | Function |
|---|---|
| Proximity Sensor | Product Detect |
| PLC Input | Sensor Signal Receive |
| CTU Counter | Product Count |
| PLC Output | Conveyor Control |
| HMI | Count Display |
Working Sequence
-
Conveyor Start होता है।
-
Product Sensor Product Detect करता है।
-
PLC Input Signal प्राप्त करता है।
-
Counter एक Valid Pulse पर Count Increase करता है।
-
Current Count HMI पर Display होता है।
-
Count 50 होने पर PLC Conveyor Stop Command दे सकता है।
-
Reset Command मिलने पर Counter को Reset किया जा सकता है।
Example Count
| Product No. | Counter Value |
|---|---|
| Product 1 | 1 |
| Product 2 | 2 |
| Product 3 | 3 |
| Product 10 | 10 |
| Product 25 | 25 |
| Product 50 | 50 – Batch Complete |
PLC Timer और Counter कहाँ उपयोग होते हैं?
PLC Timer और Counter का उपयोग लगभग सभी Industrial Automation Systems में किया जाता है।
Applications
-
Conveyor System
-
Packaging Machine
-
Bottle Filling Machine
-
Pump Control
-
Motor Sequential Control
-
STP Plant
-
ETP Plant
-
Water Treatment Plant
-
Manufacturing Industry
-
Batch Production
-
Automatic Doors
-
Pneumatic Systems
-
Material Handling System
-
Machine Cycle Control
PLC Timer और Counter Programming में महत्वपूर्ण बातें
PLC Timer और Counter Programming करते समय निम्न बातों का ध्यान रखना चाहिए:
-
Timer Preset Value सही Set करें।
-
Timer Time Base या Units Verify करें।
-
Counter Input Pulse सही Configure करें।
-
Sensor Bounce या Noise के कारण Multiple Counting से बचें।
-
Counter Reset Logic सही रखें।
-
Timer Reset Conditions Check करें।
-
Motor और Machine Interlocks Configure करें।
-
PLC Program को Simulation या Testing में Verify करें।
-
High-Speed Counting के लिए High-Speed Counter (HSC) की आवश्यकता Check करें।
-
Safety Interlocks को केवल सामान्य PLC Logic पर निर्भर न रखें, जहाँ Safety-rated Control आवश्यक हो।
FAQs – PLC Timer और Counter
1. PLC Timer क्या होता है?
PLC Timer एक Programming Instruction है जिसका उपयोग किसी Logic Condition के आधार पर Time Delay या Timed Output Generate करने के लिए किया जाता है।
2. PLC Timer कितने प्रकार के होते हैं?
सामान्य PLC Timer Instructions TON, TOF और TP होते हैं।
3. TON Timer क्या करता है?
TON Timer Input ON होने के बाद निर्धारित समय Delay देता है। Preset Time Complete होने पर Output ON होता है।
4. TOF Timer क्या करता है?
TOF Timer Input OFF होने के बाद निर्धारित समय तक Output ON रखता है और Delay Complete होने पर Output OFF करता है।
5. TP Timer क्या करता है?
TP Timer Trigger मिलने पर निर्धारित समय की Pulse Generate करता है।
6. PLC Counter क्या होता है?
PLC Counter Input Pulses या Events की संख्या Count करने के लिए उपयोग किया जाता है।
7. CTU Counter क्या है?
CTU Count Up Counter है, जो Valid Input Events पर Count Value बढ़ाता है।
8. CTD Counter क्या है?
CTD Count Down Counter है, जो निर्धारित Value से Count को कम करता है।
9. CTUD Counter क्या है?
CTUD Counter Count Up और Count Down दोनों Operations कर सकता है।
10. PLC Timer और Counter में क्या अंतर है?
Timer समय को Measure या Delay करता है, जबकि Counter Events या Pulses की संख्या Count करता है।
Conclusion
PLC Timer और Counter Industrial Automation में Sequence Control और Automatic Operation के लिए बहुत महत्वपूर्ण Programming Instructions हैं।
Timer का उपयोग Motor Start Delay, Pump Stop Delay, Alarm Delay और Process Timing के लिए किया जाता है। Counter का उपयोग Product Counting, Batch Production, Machine Cycle और Quantity Monitoring के लिए किया जाता है।
TON, TOF और TP Timer तथा CTU, CTD और CTUD Counter की Understanding PLC Programming सीखने और Industrial Automation में काम करने वाले Electrical तथा Automation Engineers के लिए आवश्यक है।
इन Instructions की सहायता से आप Simple Motor Control से लेकर Complex Automatic Machines और Production Systems तक आसानी से Program कर सकते हैं।
