0% found this document useful (0 votes)
105 views21 pages

Lecture5 - FUZZY LOGIC INTERFACES WITH PLC

This document outlines a course module on integrating fuzzy logic interfaces with programmable logic controllers (PLCs). It discusses special I/O modules that can preprocess analog and other complex input signals. This includes direct action modules that connect directly to field devices and intelligent modules with on-board microprocessors. The document then focuses on fuzzy logic interfaces, which allow PLCs to implement fuzzy logic algorithms and provide fine-tuned control of nonlinear processes. An example fuzzy logic unit from Omron is presented, which can read inputs from and write outputs to other I/O modules using memory addresses. The unit performs fuzzy logic computations independently and rapidly to provide reasoned control.

Uploaded by

abu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views21 pages

Lecture5 - FUZZY LOGIC INTERFACES WITH PLC

This document outlines a course module on integrating fuzzy logic interfaces with programmable logic controllers (PLCs). It discusses special I/O modules that can preprocess analog and other complex input signals. This includes direct action modules that connect directly to field devices and intelligent modules with on-board microprocessors. The document then focuses on fuzzy logic interfaces, which allow PLCs to implement fuzzy logic algorithms and provide fine-tuned control of nonlinear processes. An example fuzzy logic unit from Omron is presented, which can read inputs from and write outputs to other I/O modules using memory addresses. The unit performs fuzzy logic computations independently and rapidly to provide reasoned control.

Uploaded by

abu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

1

Omdurman Islamic
University

Faculty of Engineering
Module 5
Electrical & Electronic
Engineering FUZZY LOGIC INTERFACES
(Control Engineering-5th year ) WITH PLC
Fuzzy Logic Control
Systems

Lecturer
Eng. FAWAZ FATHI
2

Syllabus

 Module 1: ARTIFICIAL INTELLIGENCE AND PLC SYSTEMS


 Module 2: FUZZY LOGIC PRINCIPLES
 Module 3: FUZZY LOGIC CONTROL APPLIED EXAMPLES
 Module 4: FUZZY LOGIC DESIGN GUIDELINES
 Module 5: FUZZY LOGIC INTERFACES WITH PLC

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


3

Outlines
 INTRODUCTION TO SPECIAL I/O MODULES
control objectives
 FUZZY LOGIC INTERFACES
 FUZZY LOGIC ALGORITHMS
 FUZZY LOGIC AND I/O INTERACTION

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


4

INTRODUCTION TO SPECIAL I/O


MODULES
 Special function I/O interfaces provide the link
between programmable controllers and devices that
require special types of signals.
 These special signals, which differ from standard
analog and digital signals, are not very common,
occurring in only 5–10% of PLC applications.
 However, without special interfaces, processors
would not be able to interpret these signals and
implement control programs.

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


5

INTRODUCTION TO SPECIAL I/O


MODULES
 Special I/O interfaces can be divided into two
categories:
• direct action interfaces.
• intelligent interfaces.

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


6

INTRODUCTION TO SPECIAL I/O


MODULES
 direct action interfaces:
 They are modules that connect directly to input and
output field devices. These modules preprocess input
and output signals and provide this preprocessed
information directly to the PLC’s processor.
 Special direct action I/O interfaces include modules
that preprocess low-level and fast-input signals, which
standard I/O modules can not read.

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


7

INTRODUCTION TO SPECIAL I/O


MODULES

Direct action I/O interface application


ENG.FAWAZ FATHI , Omdurman Islamic University , 2018
8

INTRODUCTION TO SPECIAL I/O


MODULES
 intelligent I/O interfaces :
 Special function intelligent I/O interfaces incorporate
on-board microprocessors to add intelligence to the
interface.
 These intelligent modules can perform complete
processing tasks independent of the PLC’s processor
and program scan.
 The method of allocating various control tasks to
intelligent I/O interfaces is known as distributed I/O
processing.

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


9

INTRODUCTION TO SPECIAL I/O


MODULES

Intelligent I/O interface application


ENG.FAWAZ FATHI , Omdurman Islamic University , 2018
10

FUZZY LOGIC INTERFACES


 Fuzzy logic interfaces, which are offered
by a few PLC manufacturers, provide a
way of implementing fuzzy logic
algorithms in PLCs.
 fuzzy logic modules do not function as
actual input and output interfaces.
Rather, they work with other input and
output interfaces, providing an intelligent
link between the two

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


11

FUZZY LOGIC INTERFACES

Fuzzy logic interface application.

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


12

FUZZY LOGIC INTERFACES


 In essence, fuzzy logic modules allow PLCs to
“reason,” letting them interpret data in an analog-
type form instead of just as ON or OFF.
 A PLC with fuzzy logic capabilities, however, can
discern between the ranges of acceptable and
unacceptable temperatures, judging a
temperature to be either more acceptable or less
acceptable.
 The “reasoning” capabilities of fuzzy modules
allow them to provide fine tuned control of
analog processes, as well as nonlinear and time-
variant processes, like tension and position control.
which often require human intuition and judgment

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


13

FUZZY LOGIC INTERFACES

Temperature sensing in (a) a normal PLC


and (b) a PLC with fuzzy
logic capabilities
ENG.FAWAZ FATHI , Omdurman Islamic University , 2018
14

FUZZY LOGIC ALGORITHMS


 These algorithms are based on user-programmed
rules, which are formed by IF conditions and THEN
actions. A fuzzy module analyzes its inputs
according to the IF conditions and then outputs
control data according to the corresponding
THEN action.
 To provide reasoned control of a field device, a
fuzzy logic module analyzes its rules according to
its graphic function and then assigns each rule a
grade to form what are known as membership
functions. Membership functions classify input
data and group the data into sets of values called
fuzzy sets
ENG.FAWAZ FATHI , Omdurman Islamic University , 2018
15

FUZZY LOGIC ALGORITHMS

Example of a fuzzy logic algorithm.

Membership functions used to create a grade.


ENG.FAWAZ FATHI , Omdurman Islamic University , 2018
16

FUZZY LOGIC AND I/O INTERACTION


 Next Figure shows Omron Electronics’s Fuzzy Logic
Unit (FLU), a fuzzy logic interface that can read
process data from up to 8 input devices and write
data to up to 4 output devices.
 This interface can perform up to 128 rules, each
with a maximum of eight IF conditions and two
THEN actions.
 The FLU, which works independently of the
processor, can implement all of its fuzzy logic
computations in 6 msec or less, thus providing fast
implementation of fuzzy logic control.

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


17

FUZZY LOGIC AND I/O INTERACTION

Omron Electronics’s Fuzzy Logic Unit (FLU) in a C200H PLC system.

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


18

FUZZY LOGIC AND I/O INTERACTION


 Omron’s Fuzzy Logic Unit uses 10 words or
registers of the programmable controller’s data
table to store its control parameters.
 The rack position of the FLU module determines
the registers’ addresses.
 Because fuzzy logic modules work through other
I/O interfaces, their input/ output data must be
transferred from/to the word address locations of
the I/O modules working with them.
 Block transfer instructions can be used to transfer
data between the I/O modules and the fuzzy
module.

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


19

FUZZY LOGIC AND I/O INTERACTION

Memory addresses used by example FLU.

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


20

FUZZY LOGIC AND I/O INTERACTION


 Bit15 the first word (word 110) turns on the fuzzy
processing.
 Inputs: bits 0–3 of word 110 specify the number of
inputs to be read (8 max) (e.g., I = 8)
 Word 111: starting address where input data is
located (length of I) (e.g., address = 120)
 Outputs: bits 0–3 of word 112 specify the number of
outputs to be written (4 max) (e.g., O = 4)
 Word 113: starting address where output data is
located (length of O) (e.g., address = 130)
 Word 114: used for flags and settings
 Words 115–119: available as working word addresses

ENG.FAWAZ FATHI , Omdurman Islamic University , 2018


21

FUZZY LOGIC AND I/O INTERACTION

Data transfer between I/O modules and fuzzy module.


ENG.FAWAZ FATHI , Omdurman Islamic University , 2018

You might also like