March 5, 2026

What Are NO and NC Contacts?

In electrical and PLC logic, contacts refer to switching elements that control the flow of current. These can be physical (like relay contacts) or virtual (used in ladder logic programming).

Normally Open (NO) Contact

Default state: Open (non-conductive)

Conducts current only when activated

Symbol in ladder logic: ─[ ]─

 

Normally Closed (NC) Contact

Default state: Closed (conductive)

Breaks current when activated

Symbol in ladder logic: ─[/]─

 

How They Work in PLC Programming

In ladder logic, NO and NC contacts represent conditions that must be met for an output coil to be energized.

Example 1: Start/Stop Motor Logic

Start_Button ─[ ]─┐

                 ───( ) Motor

Stop_Button  ─[/]─┘

Start_Button (NO): Energizes motor when pressed.

Stop_Button (NC): De-energizes motor when pressed.

This logic ensures the motor runs only when the start button is pressed and stops when the stop button is released.

Real-World Applications

In Indian Industry:

Textile machines: Start/stop yarn feeders

Packaging lines: Control conveyor belts

Pharma plants: Emergency stop systems

Automotive: Safety interlocks and door sensors

Safety Example:

Emergency stop buttons are typically NC contacts—they break the circuit when pressed, ensuring immediate shutdown.

Key Design Principles

Use NO contacts for actions that should occur only when a condition is true (e.g., start, enable).

Use NC contacts for safety or stop conditions that must break the circuit when triggered.

Combine NO and NC contacts for interlocking logic, ensuring safe operation.

Comparison Table

Feature

NO Contact

NC Contact

Default State

Open (no current)

Closed (current flows)

Activated State

Closed (current flows)

Open (no current)

Symbol in Ladder Logic

─[ ]─

─[/]─

Common Use

Start, enable, trigger

Stop, emergency, interlock

Safety Role

Less critical

Often used in fail-safe logic

 

Teaching Analogy

“Think of NO contacts like a doorbell—you press it to complete the circuit. NC contacts are like a fridge light switch—it’s on when the door is closed, and turns off when you open it.”

Best Practices

  • Label inputs clearly in HMI and ladder logic.
  • Use debounce logic for mechanical switches to avoid false triggers.
  • Test both NO and NC behavior during commissioning.
  • Document logic for maintenance and troubleshooting.

Common Mistakes to Avoid

  • Confusing physical contact type with PLC logic symbol.
  • Using NO contacts for emergency stop—this can fail in power loss.
  • Forgetting to simulate both states during testing.

 

 Conclusion

NO and NC contacts are the building blocks of PLC logic, enabling precise control over industrial processes. Understanding their behavior is essential for designing safe, efficient, and maintainable automation systems. Whether you're programming a simple motor control or a complex interlock system, mastering NO and NC logic is a must for every automation engineer.

 

March 4, 2026

What Is an Inductive Sensor?

An inductive sensor detects the presence or movement of metallic objects without physical contact. It operates by generating an alternating electromagnetic field from a coil in its sensing face. When a metal object enters this field, it causes a change in inductance, which the sensor detects and converts into a switching signal.

Unlike capacitive sensors, inductive sensors are limited to metallic targets making them ideal for rugged industrial environments where reliability and resistance to contamination are essential.

Working Principle of Inductive Sensors

The core principle is based on electromagnetic induction. Here’s how it works:

A coil inside the sensor generates a high-frequency electromagnetic field.

When a metallic object enters this field, eddy currents are induced in the object.

These eddy currents alter the amplitude of the oscillating field.

The sensor’s internal circuitry detects this change and triggers an output signal.

Key Components:

Oscillator: Generates the electromagnetic field.

Coil: Emits the field from the sensing face.

Demodulator: Detects changes in field strength.

Trigger Circuit: Converts the signal into ON/OFF output.

Industrial Applications in India

Inductive sensors are widely used across Indian industries due to their robustness, long life, and resistance to dirt, oil, and moisture.

Common Use Cases:

Automotive assembly lines: Detect metal parts, control robotic arms.

Packaging machines: Count metallic containers or caps.

Textile machinery: Monitor shaft rotation and metal guides.

CNC machines: Position sensing of metal tools and workpieces.

Conveyor systems: Detect metal objects for sorting or rejection.

Advantages of Inductive Sensors

Feature

Benefit

Non-contact detection

No mechanical wear

High durability

Resistant to dust, oil, and vibration

Fast response time

Ideal for high-speed automation

Precise switching

Reliable position sensing

Compact design

Easy to install in tight spaces

 

Limitations and Considerations

Only detects metals: Cannot sense plastic, wood, or liquids.

Short sensing range: Typically, 1–60 mm depending on sensor size.

Affected by target material: Ferrous metals (iron, steel) are detected more easily than non-ferrous (aluminium, copper).

Temperature sensitivity: Extreme heat may affect performance.

Installation Tips

Mount sensors securely to avoid vibration.

Use shielded cables to prevent electrical noise.

Maintain proper distance from target (within rated sensing range).

Avoid placing near strong magnetic fields or high-voltage equipment.

Use sensors with flush or non-flush mounting based on application.

Inductive vs Capacitive Sensors

Feature

Inductive Sensor

Capacitive Sensor

Detects

Metals only

All materials

Range

Short (1–60 mm)

Short (1–25 mm)

Environment

Harsh, oily, dusty

Sensitive to humidity

Cost

Moderate

Moderate

Application

Position, counting

Level, presence, touch

 

Teaching Analogy

Imagine inductive sensors like metal detectors at an airport. They don’t care about your clothes or shoes but if you carry metal, they’ll instantly respond. That’s how inductive sensors work—focused, fast, and reliable.

Real-World Example: CNC Tool Detection

In a CNC machine, inductive sensors are mounted near the tool holder. When a metal tool is inserted, the sensor detects its presence and signals the controller to begin machining. This ensures safety, accuracy, and automation without manual checks.

Integration with PLCs

Inductive sensors typically provide digital outputs (ON/OFF) and are connected to PLC digital input modules. In ladder logic or SCL, you can use:

pascal

IF Sensor_Input = TRUE THEN

    Tool_Present := "Yes";

END_IF;

This logic enables real-time decision-making in automated systems.

Future Trends

Miniaturized sensors for compact machines and robotics.

IO-Link enabled inductive sensors for smart diagnostics.

Long-range inductive sensors for extended detection.

Integrated sensors with built-in LED indicators and diagnostics.

Conclusion

Inductive sensors are a cornerstone of industrial automation offering non-contact, reliable, and precise detection of metallic objects. Their rugged design and fast response make them ideal for harsh environments and high-speed operations. Whether you're automating a packaging line or monitoring CNC tools, inductive sensors deliver performance you can count on.

 

March 3, 2026

What Is High-Speed Counter Logic?

High-Speed Counters (HSCs) are specialized hardware modules or PLC functions designed to count fast digital pulses often from encoders, sensors, or rotating machinery independently of the PLC’s scan cycle. Unlike standard counters, which rely on software polling, HSCs use dedicated interrupt-based logic to capture every pulse in real time.

 

Why Standard PLC Logic Isn’t Enough

Typical scan time: 5–30 ms

Pulse frequency from encoders: Often >1 kHz

Problem: PLC may miss pulses between scans

Solution: HSCs operate asynchronously, capturing every edge (rising/falling) without delay

 

How HSC Works in PLCs

Key Components:

Dedicated high-speed input terminals

Edge detection logic (rising, falling, or both)

Internal registers to store count values

Interrupt routines or cyclic OBs (e.g., OB40 in Siemens)

 

Modes of Operation:

Mode

Description

Simple Count

Counts pulses from a single input

Quadrature Count

Uses two inputs (A/B) for direction and position

Frequency Measurement

Calculates speed from pulse rate

Length Measurement

Converts pulses to linear distance

 

Practical Example: Encoder-Based Length Measurement

Let’s say you have an encoder that generates 1000 pulses per meter. You can use HSC logic to track the number of pulses and calculate the total length:

pascal

// SCL logic example

Length_mm := HSC_Count * 1.0; // Each pulse = 1 mm

  • HSC_Count → Real-time pulse count from encoder
  • Length_mm → Total measured length in millimeters

This logic is ideal for cut-to-length machines, conveyor tracking, and roll unwinding systems.

 

Applications in Indian Industry

Common Use Cases:

Textile mills: Yarn length measurement

Packaging lines: Product counting and sorting

Automotive: Shaft rotation and speed feedback

Pharma: Bottle filling and labelling synchronization

 

Hardware Integration:

Siemens S7-1200/1500: HSC via dedicated DI modules

Allen-Bradley Micro800: HSC via high-speed inputs

Delta, Mitsubishi, Omron: Built-in HSC channels with encoder support

Configuration Tips

Use shielded cables for encoder signals to avoid noise.

Debounce filters may be needed for mechanical sensors.

Set correct edge detection (rising/falling) based on sensor type.

Use OB40 or OB35 in Siemens for cyclic updates.

Retain count values during power loss using non-volatile memory.

Challenges and Solutions

Challenge

Solution

Missed pulses

Use dedicated HSC inputs, not standard DI

Electrical noise

Use opto-isolated inputs and shielded cables

Overflows

Monitor count limits and reset logic

Direction ambiguity

Use quadrature encoders with A/B channels

 

Performance Benefits

Accuracy: Captures every pulse, even at high speeds

Speed: Operates independently of scan cycle

Reliability: Reduces errors in length, speed, and position tracking

Scalability: Supports multiple counters for complex systems

 

Teaching Analogy

Imagine trying to count cars passing a toll booth with a camera that takes one picture every second. You’ll miss the fast ones. But if you use a laser beam that triggers instantly, you’ll never miss a car. That’s the difference between standard counters and high-speed counters.

Conclusion

High-Speed Counter logic is a must-have tool in any automation engineer’s arsenal. It enables precise, real-time counting of fast pulses critical for motion control, length tracking, and speed feedback. With proper configuration and integration, HSCs ensure that your PLC doesn’t just control the process it keeps up with it.