Professional Documents
Culture Documents
Programmable Logic Controller: Engr - Jama Adam Salah
Programmable Logic Controller: Engr - Jama Adam Salah
Programmable Logic Controller: Engr - Jama Adam Salah
Logic Controller
Engr.Jama Adam Salah
Introduction to
PLC Systems
Introduction
• Programmable logic controllers are now the
most widely used industrial process control
technology.
• A PLC is a user-friendly, microprocessor based
specialized computer that carries out control
functions of many types and levels of
complexity.
• Its purpose is to monitor crucial process
parameters and adjust process operations
accordingly.
Control panel of a nuclear reactor
Definition
• NEMA defines: PLC is a digitally operating electronic
apparatus(or electronic system), designed for use in an
industrial environment, which uses a programmable
memory for the internal storage of user-oriented
instructions for implementing specific functions such as
logic, sequencing, timing, counting, and arithmetic to
control, through digital or analog input/output modules,
various types of machines or processes.
• Unlike a personal computer, it has been designed to
operate in the industrial environment and is equipped
with special input/output interfaces and a control
programming language.
History of PLCs
• The first PLC systems evolved from
conventional computers in the late 1960s
and early 1970s. These first PLCs were
installed primarily in automotive plants.
• The new PLCs helped reduce changeover
time to a matter of a few days from months.
• Costs dropped and became popular by 1980s
• Now used in many industrial designs
Example PLCs
• OMRON • Addon
• DELTA PLC • Alstom
• SIEMENS • Ascom PLC
• ROCKWELL • Beckhoff
• MODICON • Bosch
• SCHNEIDER • Echelon
• ADVANTECH • Hitachi
• EkoPLC • Motorola
• Phoenix • Pancom
Example PLCs
Example PLCs
HMI(Human Machine Interface)
How PLCs Works.
• A programmable logic controller is a specialized
computer used to control machines and
processes. The components that make a PLC
work can be divided into three core areas.
Without any of these major components, the
PLC will fail to function properly. The basic
components include a power supply, central
processing unit (CPU or processor), co-processor
modules, input and output modules (I/O), and a
peripheral device.
Basic Operation of a PLC system.
• The operation of the PLC system is simple and straightforward.
The Process or CPU completes three processes: (1) scans, or
reads, from the input devices (2) executes or “solves” the
program logic, and (3) updates, or writes, to the output devices.
• The following is a list of programming languages specified by this
standard:
1) Ladder diagram (LD)
2) Sequential Function Charts (SFC)
3) Function Block Diagram (FBD)
4) Structured Text (ST)
5) Instruction List (IL)
WHAT IS PLC in electrical?
• A PROGRAMMABLE LOGIC CONTROLLER (PLC) is an
industrial computer control system that
continuously monitors the state of input devices
and makes decisions based upon a custom program
to control the state of output devices.
• PLC is used for automation of typically industrial
electromechanical processes, such as control of
machinery on factory assembly lines, amusement
rides, or light fixtures. PLCs are used in many
machines, in many industries.
Why PLC's are important
• PLC or Programmable Logic Controller is the
system that makes machinery and systems
work automatically. Without such system,
Transportation, manufacturing to amusement
rides or movie making process can't be done.
That's why PLC system is very important and
needed by all kinds of industry.
Soft-wiring Technique
• In a traditional industrial control system, all control devices
are wired directly to each other according to how the system
is supposed to operate.
• In the PLC system, instead of being wired directly to each
other, all equipment is wired to the PLC.
• Then, the control program inside the PLC provides the
“wiring” connection between the devices.
• The use of a PLC to provide the wiring connections between
system devices is called soft-wiring.
• The soft-wiring advantage provided by programmable
controllers is tremendous.
• Soft-wiring makes changes in the control system easy and
cheap.
Applications of PLCs in Industrial
Automation
• PLCs are necessary parts of industrial automation.
PLCs were invented as replacements for automated
systems that would use hundreds or thousands of
relays, cam timers, and drum sequencers. Often, a
single PLC can be programmed to replace thousands
of relays. The biggest advantage of using
programmable controllers is that they can replace the
complications of rewiring the hard-wired control
panels with simple software revisions when there is
change in process.
Advantages of PLCs
● More Flexibility
● Lower Cost
● Faster Response Time
● Easier to Troubleshoot
● Large Quantities of Contacts
● Pilot Running
● Visual Observation
● Ladder or Boolean Programming Method
● Reliability and Maintainability
Disadvantages of PLCs
• Fixed Program Applications
• Fail-Safe Operation
• High initial cost
• Sensitive to dust, high temperature and high
humidity
• Repair must be made by a qualified personal
• Not very widespread
• No uniform programming language
Operating systems and application programs
• A PLC contains a basic operating system that allows
for:
– Downloading and executing user (ladder logic)
programs
– Communicating with devices(IO module, other PLCs)
– Holding configuration data (IO module No&type,
status information)
• A PLC retains its operating system, user programs, and
some data in retentive (nonvolatile) memory
• A PLC can then resume running a user program as
soon as power is restored
User program execution
• A PLC executes an initialization step when placed in run
mode, then repeatedly executes a scan cycle sequence
• The basic PLC scan cycle consists of three steps
– An input scan
– A user program scan
– An output scan
• The total time for one complete program scan is a
function of processor speed, I/O modules used, and
length of user program
• Typically, hundreds of complete scans can take place in
1 second
The Scan Cycle
PLCs operate by continually scanning programs and repeat this
process many times per second. When a PLC starts, it runs
checks on the hardware and software for faults, also called a
self-test. If there are no problems, then the PLC will start the
scan cycle. The scan cycle consists of three steps: input scan,
executing program(s), and output scan.
Input scan
• During the input scan, data is taken from all input modules
in the system and placed into an area of PLC memory referred
to as the input image area
User program scan
• During the program scan, data in the input image area is
applied to the user program, the user program is executed
and the output image area is updated
Output scan
• During the output scan, data is taken from the output
image area and sent to all output modules in the system
Scanning consideration for scanning order
• Program (ladder logic) scanning typically takes place left
to right across each rung and from the top to bottom
rungs, in order
–Known as rung scanning, it is the method used, for
example, by Allen-Bradley
Scanning consideration for scanning order
• Modicon/Schneider Automation uses column scanning
– Here the processor "looks" at the first contact at the top
left corner and reads the first column from top to bottom
– It next reads the second column from top to bottom,
and so on
When the program starts to scan the normally closed contact Y1, Y1
will be closed because coil Y1 is Off. When the program then scan to
coil Y1 and make it On, the output will be 1.
When the program scans to the normally closed contact Y1 again in
the next scan cycle, because coil Y1 is On, Y1 will be open and make
coil Y1 Off and output 0.
The repeated scans will result in coil Y1 outputs oscillating pulses by
the cycle ΔT(On)+ΔT(Off).
Basic Program Designing Example
● An oscillating circuit with cycle nT+ΔT
When input X0 is On, due to that its corresponding normally closed contact is Off,
time
T10 will be Off and the output coil Y1 will be On.
T10 will be On and start to count until input X0 is Off.
Output coil Y1 will be delayed for 100 seconds (K1,000 × 0.1 sec = 100 secs) and
be Off.
Basic Program Designing Example
● Output delay circuit
The output delay circuit is the circuit composed of two timers.
When input X0 is On and Off, output Y4 will be delayed.
Basic Program Designing Example
● Timing extension circuit
DEFINITION OF VARIABLES
CURRENT SENSING
TEMPERATURE SENSING
PRODUCTION CONTROL
ALARM CONTROL
OPERATION HISTORY
Software
• for PLC
• Delta WplSoft_v209(43MB)
– ISPSoft also can be used for DVP series.
– For another type of PLC the software should be
different.
• for HMI
• ScreenEditor_1_05_84(69MB)
– For another type of HMI the software should be
different.
• for Communication with computer
• hj-810(usb- serial2303)(2.4MB)
– If the computer doesn’t have RS232 port, you need to
install this software to create COM port.
Assignment of Variables
• Input points
• X0: level of water tank
– if the level is low, the signal informs PLC to stop the
electrolysis power automatically and make alarm.
• X1: level of solution in Electrolyser
– if the level is low, the signal informs PLC to stop the
electrolysis power automatically and make alarm.
• X5: Overload signal
– if overload breaker is set, the signal informs PLC to
stop the electrolysis power automatically and make
alarm.
Assignment of Variables
• Output points
• Y0: AC Contactor
• Y1: DC Contactor 1
• Y2: DC Contactor 2
• Y3: Auxiliary relay for AC Contactor
• Y20: Power for Water Control Valve
• Y21: Power for Salt Control Valve
• Y24: Alarm
Assignment of Variables
• Internal Relays
• M0: Electrolyser ON/OFF Button
• M4: Water Control Valve
• M5: Salt Control Valve
• M15: Mode Button(0-Auto, 1-Manual)
• M101/M521: Positive Production State
• M102/M522: Negative Production State
• M103/M523: Positive Delay State
• M104/M524: Negative Delay State
• M107: Normal Flux Flag
• M103: Positive Delay State
Assignment of Variables
• Timer
• T0: Electrolysis Current Displaying Period(2 sec)
• T1: Electrolysis Temperature Displaying Period(2 sec)
• T3/T5: Positive/Negative production time counting timer(60 sec)
• T4/T6: Delay time counting timer(1 sec)
• T7/T8: Electrolyser Power Delay time(3 sec)
• T9: Negative Contactor Delay timer(3 sec)
• T11: Flow Rate Displaying Period(2 sec)
• T13/T14: Positive/Negative Contactor Delay timer(3 sec)
• T17: Control valves initial ON time(20 sec)
• T20: Water Control Valve ON time(20 sec)
• T21: Salt Control Valve ON time(20 sec)`
• T23: After EC=0, Salt Control Valve OFF time(5 sec)
Assignment of Variables
• Data Registers
• D0: Electrolysis Current Displaying value
• D10: Electrolysis Temperature Displaying value
• D3/D4/D5: Electrolysis current adjusting coefficients
• D7: Electrolysis current signal input
• D11~D17: Electrolysis temperature adjusting coefficients
• D20: Flow Rate Displaying value
• D30: Operation State Displaying
• D31: Alarm Displaying
• D32: Electrolyser State Displaying
• D33~D37: Flow rate adjusting coefficients
• D40: Flowmeter State Displaying
Assignment of Variables
• Data Registers
• D70: Flux difference
• D75: Electrolysis current difference
• D98~D100: Water control valve state variables
• D102~D104: Salt control valve state variables
• D112/D114: Electrolysis current monitoring variables
• D160~D1162: A/D module input points
• D210/D211: Operating hour/minute displaying
• D212/D213/D214: Work/alarm/limit current setting values
• D217/D218/D219: Work/alarm/limit flow setting values
• D224/D216: Alarm/limit temperature setting values
• D221/D222: Production Minutes/Hour setting values
COMMUNICATION PART
Engr.Jama adam
Power & energy specialist