Download chapter 2 - UniMAP Portal

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Variable-frequency drive wikipedia , lookup

Immunity-aware programming wikipedia , lookup

SCADA wikipedia , lookup

PID controller wikipedia , lookup

Resilient control systems wikipedia , lookup

Opto-isolator wikipedia , lookup

Metadyne wikipedia , lookup

Curry–Howard correspondence wikipedia , lookup

Control theory wikipedia , lookup

Distributed control system wikipedia , lookup

Digital electronics wikipedia , lookup

Control system wikipedia , lookup

Transcript
CHAPTER 2: TYPES OF
CONTROLLER
• Digital Logic Controller
• Fuzzy Logic Controller
• Programmable Logic
Controller
• PLC Applications
DIGITAL
LOGIC
CONTROLLER
INTRODUCTION
•
•
•
•
Lowest level controller
Not flexible
Many limitations
Digital values are in a binary format.
– Binary means 2 states.
• 1 (logic “high”, or H, or “on”)
• 0 (logic “low”, or L, or “off”)
• A good example of binary
– a light
• only ON or OFF
• Binary systems
– Need 2 inputs
• to produce 4 states
BINARY AS A VOLTAGE
• Voltages used to represent logic
values:
– Voltage supply
• Vcc or Vdd = 1
– Zero Volts or ground
• Gnd or Vss = 0
BASIC DIGITAL LOGIC
• based on 3 primary functions
– the basic gates:
• AND
–all inputs high for high output
• OR
–any input high for high output
• NOT
–output is opposite
(compliment) of input
WHAT IS FUZZY
LOGIC?
• a control method
– to mimic human decisions making
using
• not only uses fixed mathematical
formula
• but can weight each rule as to its
importance
WHY FUZZY?
• A logic based only on two truth values
– True and False
– inadequate to describe human
reasoning
• Fuzzy logic
– uses whole interval between 0
(False) and 1 (True)
– Better to describe human reasoning
• As a result, fuzzy logic is being
applied in rule based automatic
controllers
EXAMPLE:
• To illustrate, consider a tank in a
cement plant
CONSIST OF:
• a tank
• two level sensors
– HL (high level)
– LL (low level)
• a magnetic valve
– VL (valve)
OBJECTIVE:
• to control VL
– ON VL when
• level is low as LL
• Start refill
– OFF VL when
• level is high as LH
• Stop refill
CONDITION STATUS
•
•
•
•
•
•
VL=1 (valve open)
VL=0 (valve close)
LL=1 (level above mark)
LL=0 (level below mark)
HL=1 (level above mark)
HL=0 (level below mark)
HUMAN REASONING
• An operator would describe
the control strategy as:
– if the level is LOW then
open VL
– if the level is HIGH then
close VL
FUZZY LOGIC
– Fuzzy logic aims to mimic
operator’s decisions
– if the level is LOW then
open VL
– if the level is HIGH then
close VL
(1)
BOOLEAN/ DIGITAL
LOGIC CONTROLLER
• it can be described as:
– if LL switches from 1 to 0
• Then VL=1
– if HL switches from 0 to 1
• Then VL=0
(2)
EXAMPLES IN TODAY’S
APPLICATION
• Video recorders
– can differentiate wanted movement
from unwanted movement
– Thus stabilize the picture
• Washing machines
– Decide level of water
• Rice cookers
–?
PROGRAMMABLE LOGIC
CONTROLLER
INTRODUCTION TO PLC
• user friendly electronic computer
• used to control functions of
– many types of outputs
– Different levels of complexity
ADVANTAGES OF PLC
EASY WIRING
• To substitute hard wiring using
conventional relay which are
– Complicated
INCREASE RELIABILITY
• Once a program has been written and
tested it can be downloaded to other
PLCs.
• Since all the logic is contained in the
PLC’s memory, there is no chance of
making a logic wiring error.
MORE FLEXIBILITY
• It is easier to create and change a
program in a PLC than to wire and rewire
a circuit. End-users can modify the
program in the field.
• Original equipment manufacturers (OEMs)
can provide system updates for a process
by simply sending out a new program.
LOWER COSTS
• Originally PLCs were designed to
replace relay control logic. The cost
savings using PLCs have been so
significant that relay control is
becoming obsolete, except for power
applications.
• Generally, if an application requires
more than about 6 control relays, it will
usually be less expensive to install a
PLC.
COMMUNICATION CAPABILITIES
• A PLC can communicate with other
controllers or computer equipment.
• They can be networked to perform such
functions as: supervisory control, data
gathering, monitoring devices and
process parameters, and downloading
and uploading of programs.
FASTER RESPONSE TIME
• PLCs operate in real-time which means
that an event taking place in the field will
result in an operation or output taking
place.
• Machines that process thousands of
items per second and objects that spend
only a fraction of a second in front of a
sensor require the PLC’s quick response
capability.
EASIER TO TROUBLESHOOT
• PLCs have resident diagnostic and
override functions that allows users to
easily trace and correct software and
hardware problems.
• The control program can be watched in
real-time as it executes to find and fix
problems
PLCs VERSUS PERSONAL COMPUTERS
Same basic architecture
PLC
-operates in the
industrial environment
-is programmed in relay
ladder logic
-has no keyboard, CD
drive, monitor, or disk
drive
-has communications
ports, and terminals
for input and output
devices
PC
-capable of executing
several programs
simultaneously, in any
order
-some manufacturers
have software and
interface cards available
so that a PC can do the
work of a PLC
PC BASED CONTROL SYSTEMS
Advantages
- lower initial cost
- less proprietary hardware
and software required
- straightforward data
exchange with other
systems
- speedy information
processing easy
customization
PLC SIZE CLASSIFICATION
Criteria
- number of inputs and outputs (I/O count)
- cost
- physical size
Nano PLC ≤ 16 I/O points
- smallest sized PLC
Micro PLC ≤ 32 I/O points
Small PLC <256 I/O points
Medium PLC < 1024 I/O points
Large PLC ≥ 1024 I/O points
PLC APPLICATIONS
Example given on a
PLC Mixer Process Control
PLC Mixer Process Control Problem
• Mixer motor to automatically stir
the liquid in the vat when the
temperature and pressure reach
preset values.
• Alternate manual pushbutton
control of the motor to be
provided.
• The temperature and pressure
sensor switches close their
respective contacts when
conditions reach their preset
values.
Process Control Relay Ladder Diagram
Motor starter coil is energized when both the
pressure and temperature switches are closed or
when the manual pushbutton is pressed.
PLC Input Module Connections
• The same input field
devices are used.
• These devices are
wired to the input
module according to
the manufacturer’s
labeling scheme.
PLC Output Module Connections
Same output field
device is used and
wired to the output
module.
Triac switches motor
ON and OFF in accordance
with the control signal
from the processor.
PLC Ladder Logic Program
The numbers represent addresses
The symbols represent instructions
The format used is
similar to that of
the hard-wired relay
circuit.
I/O address format will differ, depending on the
PLC manufacturer. You give each input and
output device an address. This lets the PLC
know where they are physically connected.
Entering And Running The PLC Program
To enter the program into the PLC, place
the processor in the PROGRAM mode and
enter the instructions one-by-one using
the programming device.
To operate the program, the controller
is placed in the RUN mode, or
operating cycle.
Modifying A PLC Program
The change requires that the manual pushbutton control should
be permitted to operate at any pressure but not unless the
specified temperature setting has been reached.
Relay ladder diagram for
modified process.
If a relay system were used, it would require some rewiring of
the system, as shown, to achieve the desired change.
Modifying A PLC Program
PLC ladder logic diagram for
modified process.
If a PLC is used, no rewiring is necessary!
The inputs and outputs are still the same.
All that is required is to change the PLC program