Knowledge / Electrical and Electronics Engineering / PLC and SCADA basics

PLC and SCADA basics

Electrical and Electronics Engineering (B.E./B.Tech) · Control and measurement · free study notes for exams, placements and interviews

In short

A programmable logic controller (PLC) is a ruggedised industrial computer that reads field inputs (switches, sensors, transmitters), executes a stored user program cyclically and drives outputs (contactors, valves, drives) in real time. SCADA (Supervisory Control And Data Acquisition) is the software and communication layer above it that visualises the plant, logs data, raises alarms and lets an operator change setpoints from a control room. Together they replaced hard-wired relay panels and now run almost every Indian power station, substation, water utility, cement plant, refinery, metro and packaging line. The topic is examined in Control and Instrumentation papers, in GATE-adjacent industrial-automation electives, and it is the single most asked practical area in interviews for Siemens, ABB, Rockwell, L&T, BHEL, NTPC, Tata Steel, Honeywell and system integrators — expect ladder-logic writing on paper and scan-time questions.

Explained

PLC hardware architecture

The scan cycle and program execution

  1. Internal housekeeping / self-test: memory and battery checks, watchdog reset.
  2. Input scan: all physical input states are copied at once into the input image table (PII). The program never reads the terminal directly.
  3. Program scan: rungs/instructions execute top to bottom, left to right, once per cycle, writing results into the output image table (PIQ).
  4. Output scan / update: the output image is written to the physical output terminals.
  5. Communication and diagnostics servicing, then the cycle repeats.
  6. Scan time (cycle time) is the time for one complete pass, typically 1-20 ms; it depends on program length, instruction mix and I/O count. Throughput/response time ≈ input filter delay + up to 2 scans + output delay.
  7. Consequence of the image-table model: a signal shorter than one scan can be missed — use latching, an interrupt/immediate I/O instruction or a high-speed counter for fast pulses.
  8. Execution order matters: writing the same output coil on two rungs means the *last* rung wins ("double coil" fault).
  9. Retentive vs non-retentive memory: retentive data survives a power cycle (battery/flash-backed); non-retentive clears on restart. Safety restarts must be designed, not assumed.

Programming languages (IEC 61131-3)

Relay logic vs PLC vs DCS vs microcontroller

SCADA: architecture and functions

Communication protocols and standards

Key points

Formulas and examples

Scan time T_scan ≈ T_housekeeping + T_input + T_program + T_output + T_comm (ms)
Worst-case response time ≈ T_input filter + 2 × T_scan + T_output delay
Analog resolution = Full-scale span / (2ⁿ − 1); n = ADC bits
Counts → engineering value: V = V_min + (Counts/Counts_FS) × (V_max − V_min)
4-20 mA scaling: I = 4 + 16 × (V − V_min)/(V_max − V_min) mA
Discrete PID (PLC block): u_k = K_p·e_k + (K_p·T_s/T_i)·Σe_k + (K_p·T_d/T_s)·(e_k − e_{k−1}); T_s = loop sample (scan) time
Timer output: ON when accumulated time ACC ≥ preset PT
Power supply sizing: I_backplane = Σ(module current) × 1.25 (25% margin)
Max devices on an RS-485 Modbus segment = 32 standard loads (more with repeaters); max 1,200 m at low baud

Example 1 - Analog input scaling (very common exam question). A pressure transmitter outputs 4-20 mA for 0-10 bar into a 12-bit analog card spanning 0-20 mA, giving 0-4095 counts.

Example 2 - Worst-case response time. A PLC has 8 ms scan time, input filter delay 10 ms, relay output delay 10 ms.

Example 3 - Ladder logic: motor start/stop with overload and run timer.

I0.0 = START (NO push button)   I0.1 = STOP (NC push button, wired NC)
I0.2 = OVERLOAD relay contact (NC, wired so healthy = 1)
Q0.0 = Motor contactor          Q0.1 = Run lamp after 5 s

Rung 1:  |--[ I0.0 ]--+--[ I0.1 ]--[ I0.2 ]----------( Q0.0 )--|
         |            |
         |--[ Q0.0 ]--+                 (seal-in / latch)

Rung 2:  |--[ Q0.0 ]----[ TON  T1, PT = 5 s ]-------------------|

Rung 3:  |--[ T1.Q ]----------------------------------( Q0.1 )--|

Example 4 - Counter and batch logic. A filling line must stop the conveyor after 24 bottles and restart on a reset.

Example 5 - Memory and power-supply sizing. A rack has a CPU (0.8 A), two 16-channel DI cards (0.1 A each), two 16-channel DO relay cards (0.35 A each), one 8-channel AI (0.25 A) and an Ethernet module (0.2 A), all from the 5 V backplane.

FeaturePLCDCSSCADARTU
Primary roleFast discrete/sequential controlLarge multi-loop process controlSupervision, logging, alarmsRemote telemetry and local control
Typical scan1-20 ms100-500 ms per loop1-10 s polling100 ms-seconds
Geographic spreadOne machine/plant areaOne plantPlant to nationwideWidely dispersed sites
Analog loopsFew to moderateHundreds to thousandsNone (supervisory only)Few
Typical Indian usePackaging, rolling mill, liftsRefinery, fertiliser, thermal unitDiscom feeders, water supply, metroPipeline, canal, remote substation
InstructionFunctionKey parameters
TONOn-delay timerIN, PT, ET, Q
TOFOff-delay timerIN, PT, ET, Q
RTORetentive on-delay (AB)Preset, ACC, DN, needs RES
CTU / CTDCount up / downCU or CD, PV, CV, Q, R or LD
MOVMove dataSource, Destination
SCALEAnalog scalingRaw min/max, Eng min/max
PIDClosed-loop controlPV, SP, Kp, Ti, Td, sample time

Where it is used

Interview questions

Common mistakes

Related topics

PID controllers and tuning · Digital control systems · Transducers and sensors basics · Electrical measurements and instruments · Electric drives and VFDs · Industrial networks and Industry 4.0

Open in the Knowledge reader →Find jobs →