Module 1 – Full Expanded Long-Form
Answers (PLC) — Final
Q1. With a neat block diagram, explain the function of PLC components. (10
Marks)
A **Programmable Logic Controller (PLC)** is a specialized industrial computer designed to
automate machines and processes. Unlike conventional relay-based systems, PLCs provide
flexibility, compactness, and reliable operation.
**Block Diagram Components of PLC:**
1. **Central Processing Unit (CPU):**
- The CPU is the brain of the PLC.
- It reads inputs, processes logic, and updates outputs.
- It includes microprocessor, control bus, arithmetic unit, and communication circuits.
- Performs arithmetic, timing, counting, comparison, and logic execution.
- Also ensures error checking and system monitoring.
2. **Memory:**
- Divided into two types: volatile (RAM) and non-volatile (ROM, EPROM, EEPROM, Flash).
- **RAM:** Stores temporary data like counters, timers, and status bits. Needs battery
backup.
- **ROM:** Stores operating system permanently.
- **EPROM/EEPROM/Flash:** Stores user programs, retains data even during power loss.
3. **Input Section:**
- Interfaces with field devices such as sensors, switches, push buttons.
- Converts electrical signals into logic-level signals (0V = logic 0, +24V = logic 1).
- Provides electrical isolation using **opto-couplers**.
4. **Output Section:**
- Interfaces PLC to actuators such as motors, solenoids, heaters, relays.
- Converts CPU signals into appropriate electrical signals.
- Output types: relay output (AC/DC loads), transistor output (fast DC loads), TRIAC
output (AC loads).
5. **Power Supply:**
- Converts AC mains (230V/115V) into regulated DC voltages (5V, 24V).
- Supplies power to CPU, memory, and I/O modules.
- Designed to withstand short power interruptions to avoid PLC shutdown.
6. **Programming Device:**
- Used to enter, edit, and monitor programs.
- Can be handheld programmer, PC with manufacturer software, or HMI panel.
**Working Principle (Scan Cycle):**
The PLC works in a cyclic process called **scan cycle**, consisting of:
- **Input scan:** Read field inputs and store in memory.
- **Program execution:** Execute ladder logic or program instructions.
- **Output update:** Send commands to actuators based on results.
**Conclusion:**
Thus, PLC integrates CPU, memory, I/O, power supply, and programming device into one
system to control industrial automation.
*(Diagram to draw: PLC block diagram with CPU, Memory, Inputs, Outputs, Power Supply,
Programming device).
Q2. Describe special I/O modules of PLC. (8 Marks)
Apart from standard input/output modules, PLCs use **special I/O modules** to handle
advanced applications. These modules reduce CPU load and provide specialized functions.
**Types of Special I/O Modules:**
1. **High-Speed Counter Module:**
- Handles high-frequency pulses from encoders.
- Counting range up to 100 kHz.
- Useful in speed measurement and position control.
2. **Thumbwheel Module:**
- Provides manual numeric input using thumbwheel switches.
- Used for entering setpoints directly.
3. **TTL (Transistor-Transistor Logic) Module:**
- Interfaces TTL logic devices with the PLC.
- Suitable for high-speed and low-level signal devices.
4. **Encoder-Counter Module:**
- Reads signals from rotary encoders.
- Stores position and speed data for CPU use.
- Essential in motion control and robotics.
5. **ASCII/BASIC Module:**
- Allows PLC to communicate with external devices such as printers, bar code readers, and
robots.
- Runs BASIC/C programs independently of the PLC CPU.
6. **Stepper Motor Module:**
- Provides pulse trains to drive stepper motors.
- Enables accurate positioning control.
7. **PID Module:**
- Used in process industries for closed-loop control.
- Performs proportional-integral-derivative calculations outside the CPU.
- Controls variables like temperature, pressure, flow.
8. **Motion and Position Control Module:**
- Controls servo and stepper motors.
- Essential in packaging, machining, and robotics.
9. **Communication Module:**
- Enables PLC to connect with networks, other PLCs, and computers.
- Supports protocols like Ethernet, Profibus, Modbus.
**Conclusion:**
These modules make PLCs versatile and capable of handling complex industrial applications
beyond simple ON/OFF control.
*(Diagram: Block diagram of PLC with special I/O modules highlighted).
Q3. Write a neat diagram of PLC processor module and explain three modes of
operation. (5 Marks)
The **processor module** of a PLC contains the CPU, memory, communication interfaces,
and power supply interface. It often has a keyswitch to select different modes of operation:
**Modes of Operation:**
1. **RUN Mode:**
- Executes the user program continuously.
- Inputs are scanned and outputs are updated.
- Outputs are energized according to the logic.
- No program editing is allowed in this mode.
2. **PROGRAM (PROG) Mode:**
- Used for program entry, editing, and modification.
- The CPU stops execution, outputs are de-energized.
- Ensures safety while modifying logic.
3. **REMOTE (REM) Mode:**
- Allows user to control CPU mode from programming device.
- Provides flexibility to switch between RUN, PROG, and TEST remotely.
- Useful when PLC is installed in inaccessible locations.
**Conclusion:**
These three modes allow safe programming, remote operation, and reliable execution of
control tasks.
*(Diagram: Processor module showing CPU, memory, keyswitch, and communication
interface).*
Q4. Explain relay type instruction with ladder diagram and truth table. (6
Marks)
Relay-type instructions are the building blocks of ladder logic programming. They mimic
the operation of traditional relays, contacts, and coils.
**1. Examine If Closed (XIC):**
- The XIC instruction is the Examine-on instruction and is symbolized like a normally-open
contact.
- It checks if a bit is ON (logic 1). If the bit is 1, the XIC is TRUE and allows current (logic) to
pass on the rung.
**2. Examine If Open (XIO):**
- The XIO instruction checks if a bit is OFF (logic 0) and is symbolized like a normally-
closed contact.
- If the bit is 0, the XIO is TRUE.
**3. Output Energize (OTE):**
- The OTE instruction represents a coil.
- When the rung logic is TRUE, the OTE sets its associated output bit to 1, energizing the
output.
**Truth Table Example:**
| Input A | XIC Result | OTE (Output) |
|---------|------------|--------------|
|0 | False | 0 (OFF) |
|1 | True | 1 (ON) |
**Ladder Diagram Example:**
—[ ]—( )—
XIC OTE
**Conclusion:**
Relay-type instructions are the foundation of ladder programming, allowing digital ON/OFF
control that resembles physical relay logic.
*(Diagram: Ladder rung with XIC and OTE).
Q5. Write short note on language associated with PLC programming. (5 Marks)
PLC programming languages are standardized under IEC 61131. Five major languages are
used in industry:
1. **Ladder Diagram (LD):** Graphical language resembling electrical relay diagrams. Easy
to learn and widely used.
2. **Function Block Diagram (FBD):** Graphical representation using interconnected
blocks. Used for process control and continuous operations.
3. **Sequential Function Chart (SFC):** Represents processes as steps and transitions.
Useful for batch processes.
4. **Instruction List (IL):** Low-level text language, similar to assembly. Compact but less
visual.
5. **Structured Text (ST):** High-level text-based language similar to Pascal or C. Useful for
loops, arithmetic, and complex control.
**Conclusion:**
Among these, Ladder Diagram is most popular due to simplicity, while others are used in
advanced applications.
*(Exam Tip: For 5 marks, list all 5 languages + short note on each).
Q6. Explain the advantages that PLC offer over conventional relay based control
system. (6 Marks)
**Advantages of PLC over Relay Systems:**
1. **Flexibility:** Logic changes are made in software instead of rewiring.
2. **Compact Size:** A PLC can replace hundreds of relays in one small unit, reducing wiring
and saving space.
3. **Reliability:** Solid-state electronics, no moving parts, higher MTBF.
4. **Speed:** PLC executes logic in milliseconds, faster response than electromechanical
relays.
5. **Diagnostics & Troubleshooting:** PLCs provide status indicators, fault codes, and
monitoring tools, reducing downtime.
6. **Cost-Effective:** Initial cost may be high, but maintenance and reprogramming are
cheaper compared to rewiring relays.
**Conclusion:**
Due to flexibility, reliability, and ease of modification, PLCs have almost completely replaced
relay-based control systems.
*(Exam Tip: For 6 marks, list minimum 5 clear advantages and give brief explanations).
Q7. Explain different PLC programming languages defined by IEC -61131. (10
Marks)
**IEC 61131-3 Standard** defines five languages:
1. **Ladder Diagram (LD):**
- Mimics relay logic diagrams.
- Easy for electricians to understand.
- Widely used in industries like manufacturing and packaging.
2. **Function Block Diagram (FBD):**
- Graphical language with functional blocks.
- Each block performs a function (timer, counter, math).
- Suitable for process industries.
3. **Sequential Function Chart (SFC):**
- Represents processes as steps, transitions, and actions.
- Best for sequential or batch processes.
- Used in chemical, food, and beverage industries.
4. **Instruction List (IL):**
- Mnemonic, low-level language (like assembly).
- Compact but harder to learn.
5. **Structured Text (ST):**
- High-level language similar to Pascal/C.
- Suitable for complex logic, calculations, and data handling.
**Conclusion:**
Each language has its own advantage. Ladder Diagram is most popular, while ST and FBD
are used for advanced applications.
*(Exam Tip: For 10 marks, explain all 5 in detail with simple application examples).
Q8. Explain processor memory organization for SLC -5000 controller. (10 Marks)
The **Allen-Bradley SLC series controllers** (like SLC-500) use a structured memory
organization, divided into **program files** and **data files**. This arrangement helps the
CPU store logic instructions, I/O status, and process variables in an organized way.
**1. Program Files:**
- Program files contain the **ladder logic** and control instructions.
- File numbers:
- **File 0:** System functions and processor information.
- **File 1:** Reserved.
- **File 2:** Main Ladder Program (executed continuously in RUN mode).
- **Files 3–255:** Used for subroutines and additional program tasks.
**2. Data Files:**
- Data files store information about inputs, outputs, timers, counters, and user-defined data.
- Typical file numbers:
- **File 0 (O):** Output image table – stores output status.
- **File 1 (I):** Input image table – stores input device states.
- **File 2:** Processor status information.
- **File 3 (B3):** Internal bit storage (like internal relays).
- **File 4 (T4):** Timers.
- **File 5 (C5):** Counters.
- **File 6:** Control structures (shift registers, sequencers).
- **File 7 (N7):** Integer values.
- **File 8 (F8):** Floating point values.
**Memory Organization Working:**
- Inputs are scanned and stored in the input image table (I).
- The CPU executes the ladder program stored in Program Files.
- Results are stored in the output image table (O).
- Finally, outputs are updated in real time.
**Conclusion:**
This structured memory organization ensures clear separation between program and data,
making the PLC efficient and user-friendly.
*(Diagram to draw: Memory organization showing Program Files vs Data Files).
Q9. Explain typical parts of modular type PLC with block diagram. (10 Marks)
A **modular PLC** is designed with plug-in modules inserted into a rack. It is flexible,
expandable, and suitable for medium to large-scale applications.
**Parts of Modular PLC:**
1. **Rack/Chassis:**
- Physical structure holding different modules.
- Provides power and communication backplane.
2. **Power Supply Module:**
- Converts AC mains into regulated DC voltages.
- Supplies power to CPU and all I/O modules.
3. **Processor (CPU) Module:**
- Executes the user program.
- Handles logic, arithmetic, communication, and process control.
- Stores system and user programs in memory.
4. **Input Modules:**
- Accept signals from field devices like sensors and switches.
- Convert them into logic-level signals.
- Provide electrical isolation.
5. **Output Modules:**
- Drive actuators like motors, solenoids, heaters, relays, and lamps.
- Types: relay, transistor, TRIAC.
6. **Communication Modules:**
- Allow data exchange between PLCs, HMIs, SCADA, and computers.
- Support networking standards like Profibus, Ethernet, DeviceNet.
7. **Programming Device:**
- Used to enter, debug, and modify the control program.
- Can be a PC or handheld programmer.
**Advantages of Modular PLC:**
- Easy expansion by adding/removing modules.
- Suitable for large plants requiring thousands of I/Os.
- Maintenance is simpler as faulty modules can be replaced independently.
**Conclusion:**
The modular type PLC provides flexibility, scalability, and reliability, making it ideal for
industrial automation.
*(Diagram: Rack with CPU, Power Supply, I/O modules, Programmer).
Q10. Explain the relay, transistor and TRIAC types of PLC output channels. (6
Marks)
PLC output modules act as the interface between the CPU and field actuators. The three
common output types are:
1. **Relay Output Modules:**
- Electromechanical relays inside the module.
- Can switch both AC and DC loads.
- Suitable for devices like lamps, solenoids, contactors.
- **Advantages:** Can handle high current.
- **Disadvantages:** Mechanical wear, slower switching speed.
2. **Transistor Output Modules:**
- Solid-state electronic switches.
- Work only with DC loads.
- Very fast switching, suitable for pulse outputs.
- Used for DC solenoids, stepper motor drivers, and electronic circuits.
- Longer life compared to relays.
3. **TRIAC Output Modules:**
- Semiconductor device used for AC switching.
- Suitable for AC loads like heaters, lamps, fans.
- Medium switching speed.
- Cannot be used with DC loads.
**Conclusion:**
- Use **Relay outputs** for versatile loads (AC/DC).
- Use **Transistor outputs** for fast DC switching.
- Use **TRIAC outputs** for AC load control.
*(Exam Tip: Use examples like motors for relay, solenoids for transistor, heaters for TRIAC).
Q11. Explain I/O sinking and I/O sourcing with relevant sketches. (6 Marks)
In PLCs, digital I/O modules are designed as either **sinking** or **sourcing**, depending
on how current flows between PLC and field devices.
**1. Sourcing I/O:**
- In sourcing, the PLC module **provides current** to the load.
- The module’s output terminal is connected to the positive supply (+24V DC).
- Current flows from PLC → load → ground.
- Sourcing output works with sinking input devices.
**Example:**
A sourcing PLC output provides +24V to energize a DC solenoid coil. The return current
flows through the load to the negative terminal.
**2. Sinking I/O:**
- In sinking, the PLC module **receives current** from the load.
- The module’s terminal is connected to ground (0V).
- Current flows from +24V supply → load → PLC input.
- Sinking output works with sourcing input devices.
**Example:**
A sinking PLC input receives current from a proximity sensor that sources +24V when an
object is detected.
**Comparison Table:**
| Feature | Sourcing | Sinking |
|-----------------|---------------------------|---------------------------|
| Current Flow | PLC → Load → Ground | +24V → Load → PLC |
| Common Terminal | Positive voltage (+24V) | Ground (0V) |
| Works With | Sinking devices | Sourcing devices |
**Conclusion:**
Correct pairing of sinking and sourcing devices is essential for PLC wiring.
*(Diagram to draw: Sourcing connection with current flow arrows, Sinking connection with
arrows).
Q12. Discuss about I/O address of PLC. (4 Marks)
Every input/output point in a PLC system is assigned an **address**. This allows the CPU to
map physical devices to memory locations.
**Addressing System (Allen-Bradley Example – SLC 500):**
- Format: `Type:Slot/Bit`
- **Type:** I (input), O (output).
- **Slot:** Module’s physical location in rack.
- **Bit:** Terminal number on module.
**Examples:**
- `I:1/3` → Input module in slot 1, terminal 3.
- `O:3/2` → Output module in slot 3, terminal 2.
**Working:**
- During input scan, PLC copies field signals into the **input image table (I:slot/bit)**.
- After program execution, output results are written into **output image table
(O:slot/bit)**.
- Finally, these are sent to real-world actuators.
**Real-World Example:**
- Conveyor system:
- `I:1/0` = Start push button.
- `I:1/1` = Stop push button.
- `O:2/0` = Motor contactor coil.
**Conclusion:**
I/O addressing provides unique identity to each device connected to PLC, ensuring accurate
control.
*(Diagram: Rack with slot & terminal addressing).
Q13. Write a short note on Human Machine Interface. (6 Marks)
The **Human Machine Interface (HMI)** is the communication link between operators and
the PLC-controlled process. It allows humans to monitor and control machines in real time.
**Functions of HMI:**
1. **Process Monitoring:**
- Displays real-time values like motor speed, tank level, temperature, and pressure.
2. **Control Functions:**
- Replaces physical push buttons with touch screen controls.
- Operators can start/stop motors, set timers, or change setpoints.
3. **Alarm and Safety Indication:**
- Provides visual (color-coded) and audio alarms.
- Red = Alarm, Yellow = Warning, Green = Normal operation.
4. **Data Logging and Trends:**
- Records historical data.
- Provides trend charts for analysis of process variables.
5. **User-Friendly Operation:**
- Supports multi-language text, animations, and intuitive icons.
**Types of HMI:**
- Simple text displays (basic operator panels).
- Graphical touchscreens (widely used).
- PC-based HMI/SCADA systems (advanced visualization and remote control).
**Real-World Example:**
- In a **boiler system**, the HMI displays water level, steam pressure, and fuel valve status.
The operator can adjust fuel flow and respond to alarms directly on the HMI screen.
**Conclusion:**
HMI improves operator efficiency, reduces downtime, and enhances safety in industrial
automation.
*(Diagram: Operator panel connected to PLC).
Q14. Discuss processor memory organization of PLC. (10 Marks)
The **memory organization of a PLC** is designed to store both the operating system and
the user program, along with temporary data for execution.
**1. Categories of Memory:**
- **Volatile Memory:**
- RAM (Random Access Memory).
- Stores temporary data such as timers, counters, and real-time variables.
- Requires battery backup to retain contents when power is lost.
- **Non-Volatile Memory:**
- ROM (Read Only Memory): Stores the PLC operating system permanently.
- EPROM (Erasable Programmable ROM): Stores user programs; erased using UV light.
- EEPROM (Electrically Erasable PROM): Stores user programs; can be electrically
reprogrammed.
- Flash Memory: High-speed, reprogrammable memory commonly used in modern PLCs.
**2. Organization of Memory Areas:**
- **Program Memory:** Stores ladder logic or other programming languages (LD, FBD, ST).
- **Data Memory:** Stores input/output status, timers, counters, integers, floats.
- **System Memory:** Stores diagnostics, error codes, and system parameters.
**3. Working of Memory Organization:**
- Input scan → Data stored in **input image table**.
- Program execution → Instructions fetched from **program memory**.
- Output update → Results stored in **output image table** and then sent to field actuators.
**Real-World Example:**
- In a **conveyor system**, RAM stores temporary count of products, while EEPROM stores
the permanent program that controls motor ON/OFF based on count.
**Conclusion:**
The processor memory organization ensures safe program storage, quick access to data,
and efficient PLC operation.
*(Diagram: Memory blocks showing Program Memory, Data Memory, System Memory).
Q15. With a neat diagram, explain typical parts of PLC. (8 Marks)
A **PLC system** is made up of different hardware parts, each performing a unique role in
automation.
**Typical Parts of PLC:**
1. **Central Processing Unit (CPU):**
- Executes the control program.
- Performs logic, arithmetic, timing, and communication functions.
2. **Memory:**
- Stores operating system, user program, and data.
- Types: RAM, ROM, EEPROM, Flash.
3. **Input Module:**
- Accepts signals from sensors, push buttons, limit switches.
- Converts them into logic-level signals.
4. **Output Module:**
- Controls actuators such as motors, solenoids, relays, and lamps.
- Converts logic signals into usable electrical power.
5. **Power Supply:**
- Provides regulated DC voltage to CPU and modules.
6. **Programming Device:**
- Allows program entry and editing.
- Can be a PC or handheld programmer.
**Real-World Example:**
- In a **bottling plant**, input modules receive signals from bottle sensors, CPU processes
filling logic, and output modules activate solenoid valves for filling.
**Conclusion:**
All these parts work together to ensure smooth automation of industrial systems.
*(Diagram: PLC block diagram showing CPU, I/O modules, Memory, Power supply,
Programming device).
Q16. With appropriate diagram, show how addressing for an Allen Bradley SLC
500 controller. (8 Marks)
The **Allen-Bradley SLC 500** uses a **rack/slot addressing format** for inputs and
outputs.
**Address Format:**
- General form: `Type:Slot/Bit`
- **Type:** I (Input) or O (Output).
- **Slot:** Module position in rack.
- **Bit:** Terminal number in the module.
**Examples:**
- `I:1/4` → Input from module in slot 1, terminal 4.
- `O:3/2` → Output to module in slot 3, terminal 2.
**Working Principle:**
- During **input scan**, field signals are copied into input image table (I).
- CPU executes logic instructions using these addresses.
- Results are stored in output image table (O).
- During **output update**, signals are sent to actuators.
**Real-World Example:**
- In a **packaging line**:
- `I:2/1` = Start button.
- `I:2/2` = Stop button.
- `O:4/0` = Conveyor motor output.
**Conclusion:**
Addressing provides a systematic way to identify each I/O device, ensuring reliable
mapping between hardware and software.
*(Diagram: Rack with slots labeled,
3showing I:slot/bit and O:slot/bit addresses).