Skip to content
EX-504 (A) · Industrial Electronics/Quick Revision Short Notes

Industrial Electronics (EX-504 (A)) - Unit 4 Short Notes

UNIT 4: PROGRAMMABLE LOGIC CONTROLLERS (PLCs)

A. Fundamentals and Architecture

Definition: A Programmable Logic Controller (PLC) is a specialized industrial computer designed for robust, real-time control of electromechanical processes in harsh environments. It is programmed to monitor inputs, execute logic, and control outputs.

Core Functions:

  • Input Scanning: Reads status of field devices (sensors, switches).

  • Logic Execution: Runs user program (scan cycle) to make decisions.

  • Output Updating: Drives actuators (motors, valves, indicators) based on logic.

  • Communication: Exchanges data with other PLCs, HMIs, and SCADA systems.

  • Self-Diagnosis: Performs internal checks and reports faults.

Key Applications in Industrial Automation:

  • Assembly line control

  • Material handling & conveyor systems

  • Process control (chemical, pharmaceutical)

  • Machine tool control

  • Building automation (HVAC, lighting)

  • Traffic signal control

Comparison with Conventional Relay Controllers:

Feature Conventional Relay Controller Programmable Logic Controller (PLC)
Wiring Hardwired, physical relays & contacts. Changes require rewiring. Software-based. Logic change = program edit.
Flexibility Very low. Difficult to modify. Very high. Easy reprogramming for new tasks.
Reliability Lower (mechanical contacts wear out). Higher (solid-state, no moving parts in logic).
Troubleshooting Difficult; requires tracing physical wires. Easier; built-in diagnostics, online monitoring.
Space & Cost Large for complex logic; high labor cost for changes. Compact; lower long-term modification cost.
Speed Slower (contact bounce, mechanical delay). Fast (microsecond scan times).
Complex Functions Limited to basic logic; timers/counters bulky. Built-in timers, counters, math, data handling.

Exam Tip: Be prepared to list at least 3 advantages (flexibility, reliability, ease of troubleshooting/ modification) and 2 disadvantages (higher initial cost, need for programming skills).

Block Diagram & Components:


[Power Supply] --> [CPU (Microprocessor/Microcontroller)] <--> [Memory (RAM/ROM/EEPROM)]

        ^                           ^

        |                           |

[Input Module]                [Output Module]

        |                           |

[Field Devices]             [Actuators]

  • Power Supply: Converts line AC/DC to regulated DC for system.

  • CPU: "Brain." Executes control program, manages I/O, communicates.

  • Memory: Stores user program (ladder logic), system data, I/O status.

  • Input/Output (I/O) Modules:

    • Digital (Discrete) I/O: On/Off signals (24V DC, 120V AC).

    • Analog I/O: Continuous signals (4-20mA, 0-10V) for temperature, pressure.

    • Specialty I/O: High-speed counters, motion control, temperature modules.

  • Programming Device: PC or handheld programmer used to write/download program.

  • Communication Interface: Ports for networks (Ethernet/IP, Modbus, Profibus).

B. PLC Programming

Standard IEC 61131-3 Programming Languages:

  1. Ladder Logic (LD): Graphical, resembles relay logic schematics. Most widely used. Uses "nets" or "rungs" with contacts and coils.

  2. Instruction List (IL): Low-level, text-based (like assembly). Less common now.

  3. Function Block Diagram (FBD): Graphical, blocks representing functions (e.g., timer, counter) with data flow.

  4. Structured Text (ST): High-level, text-based (like Pascal/C). Used for complex math/data handling.

  5. Sequential Function Chart (SFC): For step/transition-based sequential processes.

Ladder Logic Fundamentals:

  • Scan Cycle: PLC reads inputs → executes program left-to-right, top-to-bottom → updates outputs. Cycle repeats continuously.

  • Key Elements:

    • Contacts: Represent inputs (normally open --| |--, normally closed --|/|--).

    • Coils: Represent outputs ( --( )-- ).

    • Logic: Series = AND, Parallel = OR.

    • Internal Relays (Bits): Software flags for internal logic, not physical outputs.

    • Timers (TON, TOF): On-delay, Off-delay timers.

    • Counters (CTU, CTD): Up, Down counters.

Basic Programming Examples:

  1. Motor Start/Stop (Seal-in Circuit):

    
    | I:0.0/Start | I:0.1/Stop | M:0.0 |
    

|-------------|------------|-------| | M:0.0 | | O:0.0 |

```

*`I:0.0` = Start PB (NO), `I:0.1` = Stop PB (NC), `M:0.0` = Internal Bit, `O:0.0` = Motor Contactor.*

**Logic:** Pressing Start energizes `M:0.0` and Motor `O:0.0`. `M:0.0` seals the circuit. Pressing Stop breaks the seal-in path.
  1. On-Delay Timer (TON):

    
    | I:0.2 | T4:0/DN |
    

|-------|---------| | T4:0 | |

```

*`T4:0` = Timer with preset `PRE` (e.g., 5000 ms) and accumulated `ACC` value. `DN` = Done bit.*

**Logic:** When `I:0.2` goes ON, timer `T4:0` starts timing. After `PRE` time, `T4:0/DN` bit goes ON.
  1. Up Counter (CTU):

    
    | I:0.3 | C5:0/DN |
    

|-------|---------| | C5:0 | |

```

*`C5:0` = Counter with preset `PRE`. `CU` = Count Up input (rising edge). `DN` = Done bit.*

**Logic:** Each rising edge of `I:0.3` increments `C5:0.ACC`. When `ACC >= PRE`, `C5:0/DN` goes ON.

PLC Operating Modes:

  • PROGRAM Mode: PLC is stopped. Program can be edited, downloaded, or monitored. Outputs are disabled.

  • RUN Mode: PLC executes the control program normally. All I/O are active.

  • TEST Mode (or RUN/MONITOR): PLC runs program but allows forced I/O values for debugging/troubleshooting without affecting physical outputs (or with controlled override).

C. PLC Communication and System Integration

Standard Communication Protocols:

Protocol Type / Key Feature Typical Application
Modbus (RTU/TCP) Master-Slave, simple, widely supported. Basic device-to-device or PLC-to-SCADA.
Profibus (DP/PA) Deterministic, high-speed (DP) for factory, (PA) for process. Factory automation, process control (Siemens ecosystem).
Ethernet/IP Uses standard Ethernet hardware, CIP protocol. Integration with IT networks, high-data applications.
Profinet Real-time Ethernet (IRT), high performance. High-speed motion control, synchronized systems.
DeviceNet CAN-based, device-level network. Connecting smart sensors/actuators to PLC.

Interface with Power Electronics Control Systems:

PLCs interface with power electronics (drives, converters, inverters) via:

  1. Digital Outputs: For start/stop, fault reset, direction control.

  2. Analog Outputs: To send speed/torque reference signals (0-10V, 4-20mA) to drive controllers.

  3. Analog Inputs: To receive feedback (actual speed, current, temperature) from power systems.

  4. High-Speed Counters/Pulse Outputs: For precise positioning (servo/stepper drives).

  5. Communication Networks: Using protocols like Modbus RTU/TCP or Profibus DP to exchange setpoints, status, and parameters with intelligent drives (e.g., Siemens SINAMICS, Allen-Bradley PowerFlex).

Event-Driven Devices:

  • Concept: Devices that initiate an action or interrupt the normal scan cycle based on a hardware event (e.g., high-speed counting, precise position capture, pulse measurement).

  • Examples: High-Speed Counters (HSC), Interrupts, Pulse Train Outputs (PTO).

  • Integration: PLC program configures these modules. When the event occurs (e.g., encoder pulse), the CPU suspends normal scan to execute a dedicated interrupt routine, ensuring timely response critical for motion control, precise timing, or safety interlocks.

Exam Tip: For "interface with power electronics," emphasize analog signals for references/feedback and digital for control/faults. For "event-driven," highlight interrupts for time-critical tasks that bypass the normal scan cycle.

Go to where you left off?

Quick Add to Notes

Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.

Create free account

Have an account? Log in