PLC & Scada
PLC & Scada
Draw a block diagram of a PLC showing the main functional items and how buses link them,
explaining the functions of each block.
It is used for industrial automation to automate a specific process, machine function, or even entire
production.
PLCs are developed for electronic replacement for hard-wired relay logic circuit systems for machine
control. They are designed for industrial use to control many automated processes in industries.
Components of PLC :
Their are mainly 6 major part of a PLC that are :
• Processor
• Memory(RAM/ ROM)
• Input device
• Output device
• Power supply
• Programming device
Description of each part of a PLC :
• CPU : CPU is the brain of a PLC, responsible for executing the control program stored in
memory. It performs tasks such as data processing, decision-making and communication
with other devices.
• Memory(RAM/ROM) : RAM is used for storing data and variables temporarily during
the execution of the program. ROM is used to store the operating system of a PLC and
the user program. The program typically consists of two ladder logic, function block
diagrams or other programming languages.
• Input Device : This is responsible for interacting with the machine and the instructor
which can be external sensors, switches etc.
• Output Device : Output device is responsible for interacting with the end point external
device like motor, valve or indicator.
• Power Supply : PLC requires a stable power supply to run its program and match the
voltage levels that needed for a PLC components.
• Programming Device : As PLC is mainly a programmable device, so we need a device
where we can write code and execute it, just like a monitor and keyboard.
Give one application-based example of SCADA. Draw a suitable diagram to explain in detail.
Supervisory Control and Data Acquisition (SCADA) systems are widely used in various industries to
monitor and control complex processes. One common application of SCADA is in the management of
a water treatment plant. In a water treatment plant, SCADA systems help monitor and control processes
such as water purification, distribution, and storage.
Diagram:
Components:
1. Field Devices:
• These devices include sensors and actuators deployed in the water treatment plant.
Sensors measure parameters like water flow, pressure, chemical levels, and quality.
• Actuators control valves, pumps, and other equipment.
2. Remote Terminal Unit (RTU):
• RTUs are deployed in the field and act as an interface between the field devices and
the SCADA system.
• RTUs collect data from sensors and send it to the SCADA system for monitoring.
3. Master Terminal Unit (MTU):
• The MTU is the central component of the SCADA system located in the control room
of the water treatment plant.
• It collects data from RTUs, processes the information, and provides a graphical user
interface for operators to monitor and control the entire process.
4. Communication Network:
• A communication network, often based on protocols like Modbus or DNP3, connects
the RTUs and the SCADA system.
5. SCADA Software:
• The SCADA software runs on the MTU and provides a user-friendly interface for
operators and engineers.
• It displays real-time data, historical trends, and alarms. Operators can also send control
commands to adjust processes based on the information provided.
6. Historical Database:
• The SCADA system often includes a historical database to store and retrieve past data
for analysis, reporting, and compliance purposes.
The input device provides a signal to an input module. This input module is connected with the CPU for
the initial automated processes. CPU processes all the input data.
After processing by CPU, it gives output data to the output module. The output module provides a
signal to the output device. The singles can be anything like activating or deactivating output devices.
There are two types of PLCs- Compact PLC and Modular PLC.
• In Compact PLC, the capability of the I/O module is fixed.
• In Modular PLC, the capability of the I/O module is not fixed.
In this module, the I/O signal work on the binary system i.e. only 0 or 1 value. For the digital input
module, only the 1-bit signal is used.
The digital I/O signal gives status in the different form like –
Examples: Push switch, Toggle switch, Rocker switch, Selector switch, Proximity switch, Limit switch are
the example of the Digital Input Signal.
Usually, the voltage or current is given to the input module in the form of an analog signal. For the
analog input module, 12-bit or 13-bit signal is used.
Generally, analog input signals operate in the range of 4-20 mA, 0-20 mA, 1-5 V, etc.
This analog signal provides any intermittent value between the two extreme limits (initial to final range)
for the analog input module.
UP Counter (CTU)
The first counter instruction I will introduce you to is the up counter, also known as just CTU. As the
The way is works is that it will set an output, when is has counted a certain amount of times. To be a
Counting down is another operation that is widely used in PLC programming. In some cases you want
to know how many counts are remaining before the limit is reached. With the up counter you can use
some math to do it. But you can do it easily with a down counter.
At last you have the up down counter which can count both ways. Sometimes the combination of the
up and the down counter can be useful. You can count the same number both up and down and set
It operates by initiating a timing sequence when the input condition becomes true, and the output
remains off during the delay period. Once the delay period expires, the output is turned on.
• Input Signal: The input signal transitions from false to true at the beginning of the timing
sequence.
• Output State: The output remains off during the delay period (TON), indicated by the gap
between the input becoming true and the output turning on.
• Output Activation: After the delay period (TON) elapses, the output turns on and remains on
as long as the input condition remains true.
Example:
Consider a conveyor belt system where a motor needs to be started after a delay once a start button is
pressed to avoid sudden jerks. We can use an ON Delay Timer (TON) to achieve this:
UP counters are commonly used to track the number of occurrences of an event or to measure the total
quantity of items produced or processed.
In a bottling plant, an UP counter can be used to count the number of bottles filled with a liquid product.
Each time a bottle is filled, a sensor detects the completion of the filling process and triggers the UP
counter to increment its count value.
Down Counter:
A Down counter decrements its count value each time a specified event or condition occurs. It starts
counting from a preset value and decrements the count value as the events occur.
Down counters are commonly used for applications such as countdown timers, where the remaining
time for a process or operation needs to be monitored.
In a traffic signal control system, a Down counter can be used to implement a countdown timer for
pedestrian crossings. When the pedestrian signal is activated, the Down counter starts counting down
from a preset value (e.g., 30 seconds).
List various shift register functions of PLC and explain any two of them in detail
The shift register, which allows serial input (one bit after the other through a single data line) and
produces a serial output is known as a Serial-In Serial-Out shift register.
The logic circuit given below shows a serial-in serial-out shift register. The circuit consists of four D
flip-flops which are connected in a serial manner. All these flip-flops are synchronous with each other
since the same clock signal is applied to each flip-flop.
Serial-In Parallel-Out Shift Register (SIPO):
The shift register, which allows serial input (one bit after the other through a single data line) and
produces a parallel output is known as the Serial-In Parallel-Out shift register. The logic circuit given
below shows a serial-in-parallel-out shift register.
The circuit consists of four D flip-flops which are connected. The clear (CLR) signal is connected in
addition to the clock signal to all 4 flip flops in order to RESET them.
The output of the first flip-flop is connected to the input of the next flip flop and so on. All these flip-
flops are synchronous with each other since the same clock signal is applied to each flip-flop.
PLC sequencers are commonly used in manufacturing, assembly lines, and other automated systems
where tasks need to be performed in a specific order.
1. Sequential Logic Execution: At its core, a PLC sequencer executes a series of steps or tasks in
a predefined order. These steps are programmed into the PLC's logic using ladder logic,
function block diagrams, or other programming languages supported by the PLC.
2. Step Advancement: The sequencer advances from one step to the next based on predefined
conditions or events. These conditions are typically based on input signals from sensors, timers,
counters, or other devices connected to the PLC.
3. Branching and Conditional Execution: PLC sequencers can incorporate branching logic to
handle different scenarios or conditions. This allows for conditional execution of steps based
on the state of inputs, internal variables, or other factors.
4. Looping and Iteration: PLC sequencers support looping constructs, such as FOR loops or
WHILE-DO loops, to repeat sections of the sequence as needed. This is useful for tasks like
batch processing or continuous operation.
5. Error Handling and Recovery: PLC sequencers can include error handling mechanisms to
detect and respond to faults or abnormal conditions during operation.
6. Interlocking and Safety: Sequencers often incorporate interlocking logic to enforce safety
protocols and prevent hazardous conditions.
What is the importance of SKIP and MCR functions of PLC explain with suitable application.
1. SKIP (Skip Next Scan) Function:
The SKIP function allows programmers to skip the execution of specific rungs or sections of ladder logic
during a PLC scan cycle.
This feature is particularly useful for bypassing certain routine checks or actions under specific
conditions, thus optimizing scan time and improving overall system performance.
Suppose a conveyor system has sensors at various points along the conveyor to detect the presence of
objects.
The PLC program controls the operation of motors to start, stop, and reverse the conveyor based on
these sensor inputs.
The MCR function is a special relay in ladder logic programming that acts as a master control for
enabling or disabling a group of rungs or sections of ladder logic.
It is typically used to provide centralized control over complex sequences or subroutines within a PLC
program.
• Centralized Control: Provides a single point of control for activating or deactivating multiple
rungs or sections of ladder logic, simplifying program organization and maintenance.
• Enhanced Modularity: Facilitates the creation of modular and reusable code segments by
grouping related rungs under the control of an MCR, promoting code reusability and scalability.
• Improved Fault Handling: Allows for easy isolation and troubleshooting of specific sections
of ladder logic by enabling or disabling them using the MCR, aiding in the diagnosis and
resolution of program faults.
Consider a batch processing system used in a chemical plant where multiple tanks are filled, mixed, and
emptied according to specific recipes.
Each batch consists of a sequence of steps, including filling, mixing, heating, and draining, controlled
by the PLC.
Write and explain ladder logic program for stepper motor control with PLC in forward and
reverse direction.
&
Prepare Ladder Logic Diagram (LLD) to START and STOP reversible Motor which indicates
forward and reverse direction by the Green and Red LED’s.
The Workpiece starts moving on the left side and moves to the right when the start button is pressed.
When it reaches the rightmost limit, the drive motor reverses and brings the workpiece back to the
leftmost position again and the process repeats.
The forward and reverse pushbuttons provides a means of starting the motor in either forward or
reverse so that the limit switches can take over automatic control.
Program Description
RUNG 0000
Latching rung to operate the system through Master Start and Stop PB.
RUNG 0001
When the workpiece is near Limit switch1, It will enable forward motor, for latching forward Motor is
connected in parallel with limit switch 1.
Forward Pushbutton (PB) is also connected in parallel to manually operate forward motor.
RUNG 0002
When the workpiece is near Limit switch2, It will enable reverse motor, for latching reverse Motor is
connected in parallel with limit switch 2.
Reverse Pushbutton (PB) is also connected in parallel to manually operate Reverse motor.
With neat diagram explain Remote Terminal Units as a part of SCADA system.
Remote Terminal Unit (RTU) in SCADA systems is a microprocessor-based electronic device present at
geographically distributed remote locations in order to facilitate communication of various devices
within the distributed SCADA system.
It consists of input-output hardware and communication interface for remote sensing and controlling
of ongoing processes.
The sole purpose of an RTU present at the remote site of the SCADA system is to send all the collected
data and information to the central station with the help of sensors, monitors, production processes,
etc. so that it can be stored and monitored.
The major components of RTU are CPU, Memory (volatile and non-volatile), Power supply module with
battery, Real-time clock, Watchdog Timer, Communication Interface (serial port or onboard modem
with I/O interface).
In the above-shown figure, a hardware module is shown where the I/O modules are placed within the
RTU panel and communication is established with the master station via the communication port.
The I/O modules are connected to the central processor in order to communicate with the master
station.
Explain various input and output devices interfaced to PLC with example in brief.
An automated system depends to a large extent on the ability of a PLC controller to read signals from
different types of sensors and input devices.
To detect a work piece, see a mechanism in motion, check the pressure or the level of liquid, you need
specific automatic devices such as proximity sensors, marginal switches, photoelectric sensors, level
sensors, etc. Therefore, the input signals can be logical (on / off) or analog.
One of the most frequent analog signals is a current signal of 4 to 20 mA and a millivolt voltage signal
generated by several sensors. The sensors are generally used as inputs for PLCs. You can get sensors for
different purposes. They can feel the presence of some parts, measure temperature, pressure, or some
other physical dimension, etc.
the most commonly used devices are motors, solenoids, relays, indicators, sound signaling and the like.
When starting a motor or a relay, the PLC can manage or control a simple system such as the system to
classify products into complex systems such as the service system to position the head of the CNC
machine.
The output can be analog or digital type. The digital output signal works like a switch; The line is
connected and disconnected. The analog output is used to generate the analog signal.
Explain processor memory organization for an SLC 500 controller with program
and data file details.
The SLC 500 controller, produced by Allen-Bradley, is a widely used Programmable Logic Controller
(PLC) in industrial automation.
Its memory organization is crucial for storing both the program logic and data used in automation
processes.
1. Program Memory:
• The program memory in the SLC 500 controller is divided into two primary sections:
• A) User Program Memory (P File): This section holds the user-written program logic,
typically in ladder logic format. It contains the instructions that dictate the behavior of
the PLC.
• B) System Program Memory: This section contains the operating system and firmware
required for the PLC's operation. It includes functions for communication, diagnostics,
and other system-level operations.
2. User Program Memory (P File):
• The user program memory, also known as the "P File," is where the ladder logic program
is stored.
• The ladder logic program is structured into multiple rungs, with each rung containing
a combination of input instructions, output instructions, and other logical operations.
3. Data Memory:
• The data memory in the SLC 500 controller is used for storing various types of data
required for program execution.
• Data memory is divided into different data files, each serving a specific purpose and
containing different types of data.
• Common data files in the SLC 500 include:
• A) Input Data File (I File): Stores the current states of input devices connected to the
PLC.
• B) Output Data File (O File): Stores the desired states of output devices controlled by
the PLC.
• C) Integer Data File (N File): Used for storing integer values, such as numerical constants
or intermediate calculations.
• D) Binary Data File (B File): Stores binary data, often used for storing status information
or flags.
• E) Timer Data Files (T Files): Store timer values and control timer functions within the
PLC program.
• F) Counter Data Files (C Files): Store counter values and control counter functions within
the PLC program.
Name various forms of PLC counter instructions and explain any one with timing
diagram.
1. Up Counter (CTU - Count Up): The up counter instruction increments its count value when the
input condition turns true. It typically resets when a specified preset value is reached.
2. Down Counter (CTD - Count Down): The down counter instruction decrements its count value
when the input condition turns true. It typically resets when a specified preset value is reached.
3. Up/Down Counter (CTUD - Count Up/Down): This counter instruction allows both counting
up and counting down based on different input conditions. It typically resets when a specified
preset value for either count direction is reached.
4. Bi-Directional Counter: This counter instruction allows counting in both directions (up and
down) simultaneously. It is often used in applications where forward and reverse movements
need to be tracked independently.
5. Ring Counter: A ring counter is a special type of counter where only one bit is high at a time,
and the high bit rotates from one bit position to the next with each clock pulse.
UP Counter :
Explanation:
• In the timing diagram above, the clock pulses are represented by short vertical lines at regular
intervals.
• The input condition is shown as a continuous line, indicating when it is true (active) and false
(inactive).
• The count value starts from 0 and increments by 1 each time the input condition becomes true
(active).
• When the count value reaches the preset value (in this case, 10), the counter resets back to 0.
• The counter only increments when the input condition is true. If the input condition is false, the
count remains unchanged.
• In this example, the count value increments from 0 to 10 as the input condition becomes true
for 10 clock pulses. Then, it resets back to 0 when the preset value of 10 is reached.
Illustration Explanation:
1. Robot Structure: The illustration depicts a simple two-axis robot consisting of a base (Axis 1)
and an arm (Axis 2). The robot is capable of moving horizontally and vertically to perform tasks
such as picking up objects, placing them, or performing specific actions.
2. Actuators: Each axis of the robot is controlled by respective actuators, such as stepper motors,
servo motors, or pneumatic cylinders, depending on the application requirements. These
actuators are responsible for moving the robot along its axes.
3. End Effector: The end effector, represented by the gripper in the illustration, is attached to the
arm of the robot. It is used to interact with objects, such as grasping, lifting, or manipulating
them based on the programmed instructions.
4. PLC (Programmable Logic Controller): The PLC serves as the control unit for the robot. It
coordinates the movement of the robot's axes and executes programmed sequences to perform
specific tasks. The PLC communicates with sensors, actuators, and other devices to monitor
inputs and control outputs.
5. PLC Sequencer: The PLC sequencer is a program logic component within the PLC that manages
the sequence of operations performed by the robot. It defines the order of actions, conditions
for transitions between steps, and timing requirements for each operation.
Operation Explanation:
1. Initialization: The PLC starts the control program and initializes the robot's position and state.
2. Input Monitoring: The PLC continuously monitors input signals from sensors, such as limit
switches, encoders, or vision systems, to detect the robot's position, the presence of objects, or
environmental conditions.
3. Sequence Execution: Based on the input signals and programmed logic, the PLC sequencer
executes a sequence of actions to perform a specific task.
4. Feedback Control: During operation, the PLC receives feedback signals from sensors or
encoders to verify the robot's position and ensure accurate execution of the programmed
sequence. It may also incorporate error handling routines to address unexpected events or
deviations from the desired behavior.
5. Task Completion: Once the programmed sequence is completed, the PLC may return the robot
to a standby position, await further instructions, or initiate a new sequence based on external
inputs or triggers.
Describe analog signal processing in PLC. Explain PID function of PLC in detail.
Analog signal processing in PLCs involves handling continuous analog signals, such as voltage or
current, to control various processes or systems.
PLCs typically have analog input and output modules that interface with sensors and actuators, allowing
them to measure and control analog signals within a specified range.
PID control is a feedback control algorithm widely used in industrial automation to regulate process
variables such as temperature, pressure, flow, position, and speed.
It calculates control output based on three terms: proportional, integral, and derivative.
Draw neat and clean generic functional diagram of PLC and describe each part in details.
1. Inputs:
• Inputs represent signals received from various sensors, switches, or other devices in the
field.
• These signals can be digital (on/off) or analog (continuous).
• Digital inputs are typically represented by discrete binary values (0 or 1), while analog
inputs are represented by continuous voltage or current levels.
2. Logic:
• The logic section of the PLC processes input signals using programmed instructions.
• It executes the user-defined control logic, which may include ladder logic, function
block diagrams, structured text, or other programming languages.
• The logic section determines the behavior of the PLC based on input conditions and
user-defined logic.
3. Outputs:
• Outputs represent signals sent from the PLC to actuators, motors, valves, or other
devices in the field.
• Similar to inputs, outputs can be digital or analog, depending on the type of device
being controlled.
• Digital outputs control devices with binary states (on/off), while analog outputs provide
variable control over devices such as motor speed or valve position.
4. Input Modules:
• Input modules interface with the physical input devices in the field and convert their
signals into a format that the PLC can understand.
• These modules may include digital input modules for connecting to switches, sensors,
or proximity detectors, as well as analog input modules for connecting to transducers,
temperature sensors, or pressure sensors.
5. Output Modules:
• Output modules interface with the physical output devices in the field and convert
control signals from the PLC into a format suitable for driving these devices.
• Digital output modules control devices such as relays, solenoids, or contactors, while
analog output modules provide voltage or current signals to control devices with
variable outputs.
A Burglar Alarm is activated if an unauthorized intruder detected by a Window Sensor or a
Motion Detector. Consider following
1.Window sensor is a loop of wire that is a piece of thin metal foil this encircles the window. In
Window Sensor, current is always passing until there is a breakage in glass of a window. Hence
output is always true. When alarm system is active and someone tries to break the window,
current does not flow through the metal foil causing output to go false.
2. The motion detector is designed such that when a person is detected, the output of sensor
goes true.
3. Alarm activate/Deactivate (Master) Switch is true when alarm activated otherwise false.
Prepare LLD of the system using Karnaugh(K)-map
To create the ladder logic diagram (LLD) for the burglar alarm system using Karnaugh (K)-map, we need
to first define the input and output conditions. Let's denote:
• WS (Window Sensor): Input representing the state of the window sensor (true if no breakage,
false if breakage).
• MD (Motion Detector): Input representing the state of the motion detector (true if motion
false if deactivated).
• AL (Alarm): Output representing the activation of the burglar alarm (true if alarm should be
• AL=(WS+MAS)′
Implement ladder logic diagram to total four number of outputs which should be run one by one
with a particular time delay.
1. Generate Master Start and Stop buttons to activate the sequence and define four outputs.
2. Use TON-1 for 5 sec, TON-2 for 3 sec, TON-8 sec and TON-4 for 10 sec.
3. Use Done bit of first timer to energize other output and activate next timer. 4. Repeat this
process until the final output is energized and last timer is activated. Reset timers after the
completion of first cycle if necessary. Use LEDs as output to test the program.
To implement the ladder logic diagram as described, we'll use the TON (Timer On Delay) instruction for
each output.
We'll also utilize the done bit of each timer to trigger the next output and timer. Here's how you can
implement it:
Explanation:
To design the Low-Level Design (LLD) for controlling traffic lights from South to North direction with
the specified timings, we can break down the system into components and their interactions.
Components:
1. Traffic Light Controller: Responsible for managing the state transitions of the traffic lights.
2. South to North Traffic Light: Actual physical lights indicating the status of traffic for this
direction.
States:
1. Green: South to North traffic allowed.
2. Yellow: Transitioning between green and red lights.
3. Red: South to North traffic stopped.
LLD Outline:
1. Traffic Light Controller:
• Input: Clock signal or timer interrupt.
• Output: Control signals to the South to North traffic light.
• Operations:
• Initialize state machine with initial state (Red).
• On clock signal:
• Change state according to timing requirements.
• Output corresponding control signals to the traffic light.
2. South to North Traffic Light:
• Inputs: Control signals from the Traffic Light Controller.
• Outputs: Illumination signals for green, yellow, and red lamps.
• Operations:
• Receive control signals.
• Illuminate lamps based on received signals.
• Manage timings of each lamp according to signals received.
3. State Machine (Traffic Light Controller):
• States:
1. Red
2. Green
3. Yellow
• Transitions:
• Red -> Green: After 120 seconds.
• Green -> Yellow: After 15 seconds.
• Yellow -> Red: After 5 seconds.
• Yellow -> Red (transition from Green directly if the 15 seconds are not yet
completed when transitioning): If external interruption occurs (e.g., pedestrian
crossing request).
4. Timing Mechanism:
• Use timers or clock signals to track time intervals for each state.
• Upon reaching the specified time for each state transition, trigger the transition in the state
machine.
5. Error Handling:
• Handle any potential errors or exceptions such as sensor failures, power outages, etc.
• Implement fault tolerance mechanisms to ensure continuous operation.
Implement the dual Counter to indicate 5th part coming from line A and 11th part from line B in
to main conveyor belt by turning ON Lamps. Do repeat process again.
To implement the functionality of indicating the arrival of every 5th part from Line A and every 11th part
from Line B onto the main conveyor belt using dual counters and lamps, we can follow this design:
Components:
1. Dual Counters: One for Line A and one for Line B.
2. Lamps: Indicate the arrival of the specified parts onto the main conveyor belt.
3. Main Conveyor Belt: Receives parts from Line A and Line B.
Counter Logic:
1. Line A Counter: Counts every part arriving from Line A.
2. Line B Counter: Counts every part arriving from Line B.
Lamps:
1. Line A Lamp: Turns on when the Line A counter reaches a multiple of 5.
2. Line B Lamp: Turns on when the Line B counter reaches a multiple of 11.
LLD Outline:
1. Dual Counters:
• Inputs: Part detection signals from Line A and Line B.
• Outputs: Counts of parts from Line A and Line B.
• Operations:
• Increment Line A counter on each part detection signal from Line A.
• Increment Line B counter on each part detection signal from Line B.
2. Lamps:
• Inputs: Count values from Line A and Line B counters.
• Outputs: Control signals to the Line A and Line B lamps.
• Operations:
• Check if Line A counter value is a multiple of 5.
• If true, turn on Line A lamp.
• Check if Line B counter value is a multiple of 11.
• If true, turn on Line B lamp.
3. Main Conveyor Belt:
• Inputs: Parts from Line A and Line B.
• Operations:
• Receive parts from Line A and Line B.
• Transport parts along the conveyor belt.
4. Reset Logic:
• Reset Line A Counter: Reset Line A counter to zero after reaching a multiple of 5.
• Reset Line B Counter: Reset Line B counter to zero after reaching a multiple of 11.
5. Repeat Process:
• After indicating the arrival of the specified parts onto the main conveyor belt, repeat the process
by continuing to count parts from Line A and Line B.
Describe STAR and RING bus topology networking for PLC operation.
STAR Topology:
In a STAR topology, all devices (PLCs in this case) are connected directly to a central hub or switch. Each
PLC has its own dedicated connection to the central hub. The hub acts as a mediator, managing the
flow of data between PLCs.
1. Central Hub/Switch: This is the central point of connection for all PLCs. It manages
communication between PLCs.
2. PLCs: Each PLC is connected directly to the central hub via an individual cable. They can
communicate with each other through the hub.
RING Topology:
In a RING topology, PLCs are connected in a closed loop or ring configuration. Each PLC is connected
to two neighboring PLCs, forming a continuous ring.
1. PLCs: Each PLC is connected to two neighboring PLCs forming a ring configuration. PLCs
communicate with each other by passing data in a unidirectional or bidirectional manner
around the ring.
Prepare ladder logic diagram for 2-axis pick and place robot.using PLC sequencer Control .
To design a ladder logic diagram for a 2-axis pick and place robot using PLC sequencer control, we'll
break down the process into steps and then translate these steps into ladder logic.
Steps:
1. Initialization:
• Initialize variables and set initial conditions.
2. Sequence Control:
• Define a sequence of operations for pick and place.
• Utilize a sequencer control to manage the sequence of steps.
3. Pick Operation:
• Move the robot to the pick position.
• Activate the gripper to pick up the object.
4. Place Operation:
• Move the robot to the place position.
• Release the gripper to place the object.
5. Error Handling:
• Implement error handling routines to deal with unexpected events.
Ladder Logic Diagram:
Explanation:
1. Initialization:
• This section initializes variables, timers, counters, etc., and sets initial conditions for the operation
of the pick and place robot.
2. Sequence Control:
• Utilizes a sequencer control to manage the sequence of steps in the pick and place operation.
Each step will be activated sequentially.
3. Pick Operation:
• This section moves the robot to the pick position and activates the gripper to pick up the object.
4. Place Operation:
• This section moves the robot to the place position and releases the gripper to place the object.
5. Error Handling:
• Implements error handling routines to handle any unexpected events or errors that may occur
during the pick and place operation.
Three conveyors fed a main conveyor. The count from each feeder conveyor is fed into an input
register in PLC. Construct a PLC program to obtain the total count of parts on the main conveyor.
Use a timer to update total count every 15 seconds.
To construct a PLC program to obtain the total count of parts on the main conveyor from the count
obtained from each feeder conveyor, and update the total count every 15 seconds using a timer, we
can use ladder logic.
Steps:
1. Initialization:
• Initialize variables, timers, counters, etc.
2. Read Feeder Conveyor Counts:
• Read the count of parts from each feeder conveyor and store them in separate registers.
3. Calculate Total Count:
• Add the counts obtained from each feeder conveyor to obtain the total count of parts
on the main conveyor.
4. Update Total Count:
• Use a timer to update the total count every 15 seconds.
Explanation:
1. Initialization:
• Initialize variables, timers, counters, etc., required for the program.
2. Read Feeder Conveyor Counts:
• Read the count of parts from each feeder conveyor and store them in separate registers
or memory locations.
3. Calculate Total Count:
• Add the counts obtained from each feeder conveyor to calculate the total count of
parts on the main conveyor.
4. Update Total Count:
• Use a timer to trigger the update of the total count every 15 seconds. When the timer
expires, update the total count with the latest values from the feeder conveyors.
Prepare ladder diagram program for following application: An automatic car parking system,
when the parking area is full with 10 cars the red bulb at entry should ‘ON’ to indicates it is full.
If the number of cars within the parking area is less than 10 the green bulb should ‘ON’ to indicate
that the space for parking is available.
Explanation:
• Parking Area Full (NO Contact):
• This NO (Normally Open) contact represents the condition when the parking area is full
(10 cars).
• When the parking area is full, this contact closes, energizing the coil connected to the
red bulb, turning it ON to indicate that the parking area is full.
• Parking Area Not Full (NC Contact):
• This NC (Normally Closed) contact represents the condition when the parking area is
not full (less than 10 cars).
• When the parking area is not full, this contact opens, de-energizing the coil connected
to the green bulb, turning it OFF to indicate that parking spaces are available.
Design ladder logic diagram for industrial application rated to bottle filling system. The conveyor
system is connected with motor & other suitable mechanisms. The required control actions are
thus; if a bottle is putted on conveyer system at starting node. The motor which is connected to
conveyer is started and when the bottle will reach at valve which mounted for filling the industrial
liquid, then it will be stopped. The solenoid valve is started. When the bottle is full then the valve
is off. And conveyor system is started again and the bottle reach at ending node then conveyor
is stopped. Consider the suitable sensors, indicators and required push buttons for above
application. Prepare ladder diagram program for above with assumptions of suitable inputs and
outputs.
Explanation:
• Bottle Detected on Conveyor (NO Contact):
• This NO (Normally Open) contact represents the condition when a bottle is detected
on the conveyor system.
• When a bottle is detected at the starting node, this contact closes, energizing the coil
connected to the motor, starting the conveyor system.
• Bottle at Filling (NC Contact):
• This NC (Normally Closed) contact represents the condition when a bottle is at the
filling position.
• When a bottle reaches the valve for filling, this contact opens, de-energizing the coil
connected to the solenoid valve, stopping the flow of liquid into the bottle.
• Bottle Detected at End Node (NO Contact):
• This NO (Normally Open) contact represents the condition when a bottle is detected at
the ending node.
• When a bottle is detected at the ending node, this contact closes, de-energizing the
coil connected to the motor, stopping the conveyor system.
What is SCADA? Explain it with suitable diagram in detail.
SCADA stands for Supervisory Control and Data Acquisition. It is a system used for monitoring and controlling
industrial processes, infrastructure, and facilities.
SCADA systems are commonly used in industries such as manufacturing, energy, oil and gas, water treatment, and
transportation, among others.
The primary function of SCADA is to gather and analyze real-time data from various sensors, equipment, and
devices, and provide a centralized interface for operators to monitor and control the processes remotely.
PLCs were introduced into the field, ladder logic PLC programming was designed to mimic the layout of
relay-based circuits. In other words, ladder logic was one of the first PLC programming languages that’s
still used today due to simplicity.
Structured Text is a PLC programming language that closely resembles C or assembly. The user enters lines
of code that execute sequentially, evaluate specific functions, Boolean checks, and energize appropriate
outputs of the PLC.
Function Block Diagram, of FBD, is a programming language developed with chemical processes in mind.
It allows the user to create a visual representation and flow of the process with appropriate transitions
between the instructions.
As the name implies, sequential function charts, or SFC, shine when it comes to a subsequent process.
List eight different types of data files used by an SLC 500 controller.
Draw the ladder logic for following gates: NOR and EX-OR.
NOR Gate :
EX-OR Gate:
List and explain various PLC registers.
1. Input Registers:
• Input registers store data received from input modules connected to the PLC.
2. Output Registers:
• Output registers store data sent to output modules connected to the PLC.
• Data registers are used to store intermediate values, status flags, and control information.
Describe various move instructions: BIT, BYTE, WORD DOUBLE WORD, REAL .
• Description: Moves a byte (8 bits) of data from one memory location to another.
• Description: Moves a word (16 bits or 2 bytes) of data from one memory location to another.
• Description: Moves a double word (32 bits or 4 bytes) of data from one memory location to another.
• Description: Moves a real number (32 bits or 4 bytes) of data from one memory location to another.
Describe the networking in PLC.
o Networking in PLC (Programmable Logic Controller) systems refers to the communication between
multiple PLCs, as well as between PLCs and other devices such as HMIs (Human-Machine Interfaces),
SCADA (Supervisory Control and Data Acquisition) systems, and remote I/O modules.
o PLC networking allows for data exchange, remote monitoring, and control of distributed control systems.
What is the role of RTU in the SCADA system? Can PLC replace RTU? Which advantages
are offered by PLC?
1. Data Acquisition: RTUs collect data from various field devices, such as sensors, meters, and switches,
located in remote or distributed locations.
2. Data Processing: RTUs process the collected data, performing tasks such as scaling, filtering, and
conversion, to prepare it for transmission to the SCADA system.
3. Control Functions: RTUs execute control commands sent from the SCADA system, such as opening or
closing valves, starting or stopping pumps, and adjusting setpoints.
4. Communication: RTUs establish communication links with field devices using different communication
protocols, such as Modbus, Profibus, or DNP3, and transmit the acquired data to the SCADA system.
5. Remote Monitoring and Control: RTUs enable remote monitoring and control of distributed
processes, allowing operators to monitor equipment status, detect faults, and make control decisions from
a centralized location.
While PLCs (Programmable Logic Controllers) and RTUs share some similarities and can perform similar functions,
they are designed for different applications and have different characteristics.
1. Flexibility: PLCs are highly versatile and can be programmed to perform a wide range of control
functions, making them suitable for a variety of industrial applications.
2. Cost-Effectiveness: PLCs are often more cost-effective than RTUs for local control applications,
especially when a large number of I/O points are required.
3. Scalability: PLC systems can be easily expanded or modified by adding additional I/O modules, making
them scalable to accommodate changing process requirements.
4. Integration with SCADA Systems: PLCs can be integrated with SCADA systems using communication
protocols such as Modbus, OPC, or Ethernet/IP, allowing for seamless data exchange and control.
5. Advanced Functionality: PLCs offer advanced features such as motion control, PID control, data
logging, and recipe management, which may not be available in standard RTUs.
In a PLC (Programmable Logic Controller), PID control is implemented using a combination of instructions that
calculate the control output based on the error between the process variable and the setpoint.
List the benefits offer by PLC. Explain at least four in brief.
1. Flexibility:
• PLCs are highly flexible and can be easily reprogrammed or reconfigured to accommodate changes in the
manufacturing process or production requirements.
2. Reliability:
• PLCs are designed for use in harsh industrial environments and are highly reliable and robust.
3. Scalability:
• PLC systems can be easily expanded or upgraded to accommodate changes in system size, complexity, or
functionality.
• PLCs offer advanced diagnostic and troubleshooting capabilities, allowing operators and maintenance
personnel to quickly identify and resolve system faults or errors.
1. Inter-device Communication: PLCs can communicate with each other over a network, allowing for
coordinated control of different parts of a system.
2. Integration with other Devices: PLCs can communicate with other devices such as sensors, actuators,
and human-machine interfaces (HMIs).
3. Data Exchange: PLC network communication facilitates the exchange of data between PLCs and other
devices, allowing for real-time monitoring, control, and data logging.
4. Remote Access and Monitoring: PLC network communication enables remote access and monitoring
of PLCs and automation systems, allowing for troubleshooting, maintenance, and optimization without
physical presence.
Brief : SCADA systems are extensively used in power grid management to monitor, control, and optimize the
generation, transmission, and distribution of electrical power.
1. Monitoring: SCADA systems continuously monitor various parameters such as voltage, current,
frequency, and power flow at different points within the power grid.
2. Control: SCADA systems allow operators to remotely control power generation, transmission, and
distribution equipment such as generators, transformers, and switches.
3. Fault Detection and Management: SCADA systems quickly detect faults or abnormalities within the
power grid, allowing operators to take corrective actions promptly to minimize downtime and prevent
widespread power outages.
4. Data Logging and Analysis: SCADA systems collect and log data from various devices within the power
grid.
Input module layout of PLC with suitable diagram. OR
4. One Output cannot be used multiple times in one program, except in Set/Reset and Latch/ Unlatch functions
Explanation:
• M100: Source memory table where the status of the sensors is stored.
• D0: Destination register where the data will be moved.
• 10: Number of elements (sensors) to move.
• Data acquisition: SCADA collects real-time data from various sensors and devices.
• Interaction with devices: It interacts directly with devices through HMI (Human-Machine Interface) software.
Describe the benefits offered by graphical (Symbolic) based programming language over script
based programming language for the PLC.
• Graphical programming languages use symbols and graphical representations of logic, making it easier
for engineers and technicians to understand the control logic, even without extensive programming
knowledge.
• Graphical programming languages allow for faster development of PLC programs since users can simply
drag and drop predefined function blocks or logic symbols onto the programming interface, rather than
writing out code line by line.
• Graphical programming languages, such as ladder logic, are standardized in the industry, making it easier
for engineers and technicians to share and understand PLC programs across different platforms and
manufacturers.
What are the modules? Discuss its types and function in context to PLC.
• Input modules are used to interface the PLC with input devices such as sensors, switches, and push
buttons.
• They convert the signals from these devices into digital or analog signals that the PLC can process.
• Input modules may include different types of inputs such as digital inputs (DI), analog inputs (AI), high-
speed counter inputs, and temperature inputs.
Draw and describe wiring diagrams for Sink type and Source type Input device to be connected
to input module of PLC.
Describe MVM (Move with mask) instruction with suitable example.
o Address of the mask through which the instruction moves data. The mask acts like a filter for the
destination.
o It is the address where the instruction moves the data.
ADD : Adds the value of the source operand to the value of the destination operand and stores the result in the
destination operand.
MUL : Multiplies the value of the source operand by the value of the destination operand and stores the result in
the destination operand.
DIV : Divides the value of the destination operand by the value of the source operand and stores the result in the
destination operand.
Draw and describe timing diagram and operation of OFF-Delay Timer instruction.
Explain how plc is helpful to design SCADA over typical Industrial Application.
1. Data Acquisition:
• PLCs collect real-time data from various sensors and devices on the factory floor.
2. Control Logic:
• PLCs execute control logic based on the data received from sensors and devices.
3. Communication:
• PLCs communicate with SCADA systems using communication protocols such as Modbus,
Profibus, or Ethernet/IP.
4. Data Processing:
• SCADA systems receive data from PLCs and process it to generate real-time graphical
representations of the industrial process.
5. HMI (Human-Machine Interface):
• SCADA systems provide operators with a user-friendly interface to monitor and control industrial
processes.
Types of Logic Gates using PLC Ladder
NOT GATE:
o In electronics, NOT GATE is also called an ‘Inverter’ or ‘Buffer’.
Working: NOT gate works as inversion. It takes one input and gives one output. When the input is high then the
output is low and vice-versa.
PLC Ladder :
AND GATE:
Working: In AND Gate, when both inputs (I1 and I2) are high then the output (Q1) will be high. For all
other inputs, output (Q1) will be the low.
PLC Ladder :
OR GATE:
Working: If both inputs are low in the OR gate, then the output will be low. For all other cases, the output will be
high.
Logic Gate Truth Table for OR Gate:
PLC Ladder :
NAND GATE :
Working: In NAND Gate, the output will be low when both inputs are high. For all other cases, the output will be
high.
Logic Gate Truth Table for NAND Gate:
PLC Ladder :
NOR GATE
o NOR Gate is operated OR Gate followed by the NOT Gate.
PLC Ladder :
6. EX-OR GATE:
Working: If both inputs are high or low, the output will become low. For any other input condition, the output
will be high.
Logic Gate Truth Table for EX-OR Gate:
PLC Ladder :
Explain solid state memory organization in PLC with the help of memory map.
1. Regular Inspections: These inspections help identify signs of wear and tear, corrosion, loose connections, or
other physical issues that might impact the system’s performance.
2. Cleaning and Housekeeping: A clean environment is crucial for the smooth operation of PLCs. Dust, debris, and
contaminants can accumulate over time, leading to overheating, short circuits, and other problems.
3. Firmware and Software Updates: PLC manufacturers often release firmware and software updates that address
bugs, security vulnerabilities, and performance enhancements.
4. Lubrication and Mechanical Maintenance: In cases where the PLC system interacts with mechanical
components such as conveyors or motors, lubrication and mechanical maintenance.
5. Backup and Documentation: Regularly backing up PLC programs and configurations is a fundamental aspect
of preventive maintenance.
6. Environmental Considerations: PLCs are often deployed in various industrial settings, each with its own
environmental challenges.
8. Training and Skill Development: Maintenance personnel and technicians should receive regular training to stay
updated on the latest advancements in PLC technology, maintenance practices, and troubleshooting techniques.