812
SECTION
5
Advanced PLC
Topics and Networks
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
CHAPTER
17
Fuzzy
Logic
rules. An even membership function combination (e.g., a system with 6 labels
for one input and 4 labels for another) will have a 24-rule matrix. When more
than three inputs are used, the matrix becomes more difficult to represent,
since it becomes a three-dimensional matrix resembling a cube (three inputs).
In this type of complicated system, the rules would be broken down into
several two-dimensional matrices.
Fuzzy Outcome Calculations. Once a rule is triggered, meaning that the
input data belongs to a membership function that satisfies the rule’s IF
statement, the rule will generate an output outcome. This fuzzy output is
composed of one or more membership functions (with labels), which have
grades associated with them. The outcome’s membership function grade is
affected by the grade level of the input data in its input membership function.
In Figure 17-23a, the fuzzy input FI of 60% belongs to two membership
functions, ZR and PS, corresponding to the grades of 0.6 and 0.4, respec-
tively. These two grades will have an impact on the amount of the output (see
Figure 17-23b) by intersecting the output membership functions at the same
grade levels (0.6 and 0.4). However, the output membership function that is
selected for the final output value depends on the user’s programming of the
IF...THEN rules.
For example, in Figure 17-24, the input triggers rules 3 and 4 because the
input FI belongs to membership functions ZR and PS. These rules indicate
that both fuzzy output action ZR and action PL must be applied to the
process. These output actions will be applied at a value that corresponds to the
grades generated in the input membership functions (i.e., output 0.6ZR and
Figure 17-23. (a) Fuzzy input grades and (b) the resulting output grades.
0% 100%
0.6
1
0
0.4
Grade
Input
F
NM NS ZR PS PM
Input 60%
0% 100%
0.6
1
0
0.4
Grade
NM ZR PM
Output
FO
(a)
(b)
Potential
output
choices