chapter 2: types of controller digital logic controller fuzzy logic controller programmable logic...

40
CHAPTER 2: TYPES OF CONTROLLER • Digital Logic Controller • Fuzzy Logic Controller • Programmable Logic Controller • PLC Applications

Upload: herbert-rice

Post on 03-Jan-2016

256 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

CHAPTER 2: TYPES OF CONTROLLER

• Digital Logic Controller• Fuzzy Logic Controller• Programmable Logic Controller• PLC Applications

Page 2: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

DIGITAL LOGIC CONTROLLER

Page 3: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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”)

Page 4: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

• A good example of binary– a light• only ON or OFF

• Binary systems– Need 2 inputs• to produce 4 states

Page 5: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

BINARY AS A VOLTAGE

• Voltages used to represent logic values:– Voltage supply• Vcc or Vdd = 1

– Zero Volts or ground • Gnd or Vss = 0

Page 6: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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

Page 7: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications
Page 8: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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

Page 9: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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

Page 10: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

EXAMPLE:

• To illustrate, consider a tank in a cement plant

Page 11: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

CONSIST OF:

• a tank • two level sensors– HL (high level)– LL (low level)

• a magnetic valve– VL (valve)

Page 12: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

OBJECTIVE:

• to control VL – ON VL when• level is low as LL• Start refill

– OFF VL when• level is high as LH• Stop refill

Page 13: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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)

Page 14: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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

Page 15: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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)

Page 16: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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)

Page 17: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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– ?

Page 18: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

PROGRAMMABLE LOGIC CONTROLLER

Page 19: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

INTRODUCTION TO PLC

• user friendly electronic computer• used to control functions of–many types of outputs– Different levels of complexity

Page 20: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

ADVANTAGES OF PLC

Page 21: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

EASY WIRING• To substitute hard wiring using

conventional relay which are– Complicated

Page 22: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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.

Page 23: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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.

Page 24: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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.

Page 25: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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.

Page 26: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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.

Page 27: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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

Page 28: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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

PLCs VERSUS PERSONAL COMPUTERS

Same basic architecture

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

Page 29: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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

Page 30: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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

Page 31: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

Small PLC <256 I/O points

Medium PLC < 1024 I/O points

Large PLC ≥ 1024 I/O points

Page 32: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

PLC APPLICATIONS

Example given on a

PLC Mixer Process Control

Page 33: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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.

Page 34: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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.

Page 35: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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.

Page 36: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

PLC Output Module Connections

Same output fielddevice is used andwired to the output module.

Triac switches motorON and OFF in accordancewith the control signal from the processor.

Page 37: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

PLC Ladder Logic Program

The format used is similar to that of the hard-wired relay circuit.

The symbols represent instructions

The numbers represent addresses

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.

Page 38: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

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.

Page 39: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

Modifying A PLC Program

Relay ladder diagram formodified process.

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.

If a relay system were used, it would require some rewiring of the system, as shown, to achieve the desired change.

Page 40: CHAPTER 2: TYPES OF CONTROLLER Digital Logic Controller Fuzzy Logic Controller Programmable Logic Controller PLC Applications

Modifying A PLC Program

PLC ladder logic diagram formodified 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