Programmable Logic Controllers and Distributed Control Systems
Red Seal Practice study guide with diagrams.
Programmable Logic Controllers and Distributed Control Systems
Chapter Introduction
This chapter covers industrial programmable logic controllers (PLCs) and distributed control systems (DCS) , two fundamental technologies for the instrumentation and control technician. In Canada, these systems are governed by strict electrical standards, notably the Canadian Electrical Code, Part I (C22.1-21) and the applicable CSA standards for hazardous locations. You must master not only the internal operation of these systems, but also the commissioning, diagnostic, and safety procedures that surround them. This chapter is structured to cover all the Red Seal exam objectives.
General Architecture of Control Systems
Fundamental Definitions
A programmable logic controller (PLC) is a specialized industrial computer that cyclically executes a program to control processes. It differs from a PC in its robustness, its ability to operate in harsh environments (temperature, vibration, humidity), and its modular design.
A distributed control system (DCS) is an architecture where control functions are distributed across multiple controllers interconnected by a communication network. Each controller manages one area of the process, but the whole system is coordinated from a central control room.
Key Differences Between PLC and DCS
| Characteristic | PLC | DCS |
|---|---|---|
| **Scale** | Small to medium (16 to 1024 I/O) | Large (thousands of I/O) |
| **Architecture** | Centralized or modular | Distributed over network |
| **Cycle time** | 1 to 50 ms | 50 to 500 ms |
| **Redundancy** | Optional | Often integrated (CPU, network, power supply) |
| **Database** | Local to the program | Global and centralized |
| **Historical data** | Limited | Integrated (trends, alarms, events) |
| **Typical application** | Individual machine, small line | Refinery, chemical plant, power station |
Components of a PLC System
PLC Programming
Standardized Programming Languages (IEC 61131-3)
The IEC 61131-3 standard defines five programming languages for PLCs. The Red Seal exam requires you to know their characteristics and uses.
| Language | Type | Typical Use |
|---|---|---|
| **LD (Ladder Diagram)** | Graphical | Combinational and sequential logic, traditional in North America |
| **FBD (Function Block Diagram)** | Graphical | Analog processing, PID, complex functions |
| **ST (Structured Text)** | Textual | Mathematical calculations, loops, algorithms |
| **IL (Instruction List)** | Textual | Compact programs, European legacy |
| **SFC (Sequential Function Chart)** | Graphical | Process sequences, steps and transitions |
PLC Program Structure
The program executes in a cyclic scan according to the following sequence:
Scan time is the total duration of one cycle. It must be less than the process time constant. For a fast process (servo motor), aim for 5 to 10 ms; for a slow process (tank temperature), 100 to 500 ms is sufficient.
I/O Addressing
Each input or output has a unique address. The format varies by manufacturer, but the principle remains the same:
Exam trap : analog addresses are often in words (16 bits), not bits. An 8-channel analog card occupies 8 address words, or 16 bytes.
Essential Instructions
| Instruction | LD Symbol | Function | ||
|---|---|---|---|---|
| Normally open (NO) contact | — | — | True if input is 1 | |
| Normally closed (NC) contact | — | / | — | True if input is 0 |
| Output coil | —( )— | Activates output if rung is true | ||
| Latch coil (SET) | —(S)— | Maintains output active | ||
| Unlatch coil (RST) | —(R)— | Deactivates output | ||
| Timer on-delay (TON) | —(TON)— | Delay before activation | ||
| Timer off-delay (TOF) | —(TOF)— | Delay after deactivation | ||
| Counter up (CTU) | —(CTU)— | Counts rising edges | ||
| Comparator | —[=]—, —[>]—, —[<]— | Compares two values |
Timers and Counters: Practical Calculations
TON timer : output Q goes to 1 after a delay PT (preset time) when input IN is 1. The current value ET (elapsed time) increments at each time base interval (often 1 ms, 10 ms, or 100 ms).
Calculation example : A TON with a time base of 10 ms and a preset value of 500 gives a delay of:
500 × 10 ms = 5000 ms = 5 seconds
CTU counter : output Q goes to 1 when the current value CV reaches the preset value PV. The counter increments on each rising edge of input CU.
Exam trap : always check the time base of the timer. A preset of 100 with a 1 ms base gives 0.1 s, but with a 100 ms base gives 10 s. This error is common.
Distributed Control Systems (DCS)
Typical DCS Architecture
A DCS is divided into three hierarchical levels:
Industrial Communication Networks
| Protocol | Type | Typical Speed | Application |
|---|---|---|---|
| **EtherNet/IP** | Industrial Ethernet | 10/100/1000 Mbps | PLC, DCS, vision, motion control |
| **Modbus TCP** | Industrial Ethernet | 10/100 Mbps | PLC, instrumentation, DCS |
| **Profibus DP** | Fieldbus | 12 Mbps max | Decentralized I/O, drives |
| **Foundation Fieldbus (H1)** | Fieldbus | 31.25 kbps | Smart instrumentation, distributed PID |
| **HART** | 4-20 mA loop | 1.2 kbps | Analog transmitters with digital communication |
| **DeviceNet** | Fieldbus | 500 kbps max | Sensors, actuators, I/O |
Redundancy in DCS
Redundancy is a common requirement in critical processes. Typical configurations include:
Golden rule : redundancy does not protect against all failures. It protects against the failure of a single component, not against programming or wiring errors.
Commissioning and Diagnostics
PLC Commissioning Procedure
Diagnostic Tools
Exam trap : forcing an output does not modify the program's image memory. If the program rewrites that output on the next scan, the force is overridden. Use forcing only for testing, never in production without authorization.
Safety and Canadian Standards
Canadian Electrical Code, Part I
The Canadian Electrical Code, Part I (C22.1-21) is the national standard for electrical installations. Relevant articles for control systems include:
Hazardous Locations
PLCs and DCS installed in classified areas must be certified to CSA standards. Canadian classifications follow the zone system (Zone 0, 1, 2) for gases and vapors, and the division system (Division 1, 2) for dusts.
| Classification | Gases/vapors | Dusts |
|---|---|---|
| **Zone 0 / Division 1** | Continuous or frequent presence | Continuous presence |
| **Zone 1 / Division 1** | Occasional presence during normal operation | Occasional presence |
| **Zone 2 / Division 2** | Rare and short-duration presence | Rare presence |
Equipment requirements :
Practical rule : in Zone 1, use intrinsic safety barriers for 4-20 mA signals. In Zone 2, standard equipment with Type "n" enclosures may suffice.
CSA Standards for Control Systems
Communication and System Integration
HART Protocol
The HART (Highway Addressable Remote Transducer) protocol superimposes a digital signal on the analog 4-20 mA loop. Key characteristics:
Calculation example : a HART transmitter with a range of 0 to 100 bar and a signal of 12 mA corresponds to:
(12 mA − 4 mA) / (20 mA − 4 mA) × 100 bar = 8/16 × 100 = 50 bar
Modbus Protocol
Modbus is a widely used master-slave protocol. Main functions:
Modbus addressing : addresses are base 0 in the protocol, but base 1 in most software. A register address of 40001 in the data convention corresponds to address 0 in the protocol.
Troubleshooting and Problem Solving
Systematic Methodology
Common Programming Errors
| Error | Symptom | Correction |
|---|---|---|
| Reversed address (input/output) | Output does not respond | Check wiring and address |
| Timer with wrong time base | Delay too long or too short | Recalculate PT = desired time / base |
| Infinite loop (unconditional jump) | Abnormally long scan time | Check JMP instructions |
| Output conflict (two active rungs) | Unstable output | Use SET/RST or exclusive logic |
| Analog value out of range | Saturation or erroneous values | Check sensor range and calibration |
Summary
Pitfalls to Avoid
Final Exam Tips
This chapter covers the essentials to pass the PLC/DCS section of the exam. Review wiring diagrams, timing calculations, and safety standards. Good luck with your preparation.
Ready to test this chapter?
Practice with exam-aligned questions and timed simulations.
Start Practicing Free