SlideShare una empresa de Scribd logo
1 de 26
PROJECT DEVELOPEMENT
FUZZY SYSTEM
• Creating membership function using MATLAB
  application.
   • 4 input membership function.
   • 1 output membership function.
   • Defuzzification using MAMDANI style.
Cont. ……
• Create rule evaluation.
• Choose more usable rule for our traffic light
  system.
   • Do try and error to find rule that give more
     logic condition.
   • Cut any rule that give same result.

 Testing fuzzy system using MATLAB to check
  condition of our system before implement in PLC.
MEMBERSHIP FUNCTION
              (MATLAB)
Input Membership Function
Input MF
Membership variable : very low, low,
 medium, high, very high.
Very low [0 0 2.5]
Low [0 2.5 5]
Medium [2.5 5 7.5]
High [5 7.5 10]
Very high [7.5 10 10]
Output Membership Function
Output MF

Membership variable : very
 low, low, medium, high, very high.
Very low [0 0 10]
Low [0 10 20]
Medium [10 20 30]
High [20 30 40]
Very high [30 40 40]
Evaluation of Rule
Evaluation of RULE
Use MAMDANI style.
 Use min-max.
 Difuzzification using centroid of gravity.
 On our project we have use 45 rules to
  make our system function properly.
Creating Fuzzy using Cx-Process
Tool
Create fuzzy block diagram.
 Because our output for fuzzy is four, so
  we need to construct four fuzzy block
  diagram.

 Create user link table to read/write
  (communicate) between LCB (Cx-
  Process) and CPU PLC (Cx-Programmer).
Cont.
Need to create input MF, up to 8 input. (but
 in our project we just use 4 input; X1, X2,
 X3, X4.)
Input membership variable:
  NL: 0:2500
  NS: 0:2500:5000
  ZR: 2500:5000:7500
  PS: 5000:7500:10000
  PL: 7500:10000
Cont.
Need to create output MF, up to 2 output;
 Y1 and Y2.
But, in our project just use 1 output; Y1.
Use horizontal singleton.
Output membership variable:
 NL: 5000
 NS: 10000
 ZR: 15000
 PS: 20000
 PL: 25000
Cont.
RULES
Rules express experience and know-how in IF-
 THEN statements. For example, IF (you're close
 to the car in front of you) & (you're going very
 fast) THEN (you have to step on the brake very
 hard).
Up to 64 rules.
In our project using 45 rules.
Up to 8 conditions can be set for inputs X1 to
 X8, and up to two conclusions can be set for
 outputs Y1 and Y2.
Cont.
  Conditions

    The labels that will be used for inputs X1 to
     X8 are listed in order separated by colons.
    For example, if label NS is used for input
     X1 and labels ZR, PL, PL, NS, ZR, PL, and
     PL are likewise used for inputs
     X2, X3, X4, X5, X6, X7, and X8, then
     NS:ZR:PL:PL:NS:ZR:PL:PL is specified.
Cont.
 Conclusions
 The labels that will be used for outputs Y1 and
  Y2 are listed in order separated by colons.
 For example, if ZR is used for output Y1 and PL
  is used for output Y2, then ZR:PL is specified
 A slash is placed between the conditions and
  conclusions.
 For example, the above rule would be specified
  as follows:
  NS:ZR:PL:PL:NS:ZR:PL:PL/ZR:PL
Cont.

 Set a hyphen for inputs or outputs for which
  labels are not set.
 For example, to set NL for input X1, PL for
  input X2, and ZR for output Y1, then the
  rule "IF (Input X1 is NL and Input X2 is PL),
  THEN (Output Y1 is ZR)" would be
  specified as follows for ITEM 101:
    NL:PL:-:-:-:-:-:-/ZR:-
Fuzzy Block Diagram
Creating ladder diagram (cx-
programmer)
 used to create ladder diagram for input and output
  of traffic light system.
 Use a discrete sensor (photoelectric switch) to
  detect presence vehicle for each junction.
 Use counter in ladder to count vehicle which detect
  by photoelectric switch.
 Data from counter is transform to LCB (Fuzzy
  system) to process by fuzzy system.
 Data from LCB then send to PLC to generate
  output for traffic light.
 Data from LCB is Hex, so it must create a ladder
  diagram to make is useful for generate timer for
  traffic light system.
Testing & Result
  Using MATLAB
  Guide to test using Matlab:
  Put number of vehicles for each junction at bottom pages and
   look for output at top right pages.




Put number of
vehicles here
Cont.

 Look for output here
Result from Matlab
Testing in real system (PLC
with Fuzzy system)
Guide to testing;
The car come from each junction with
 random number.
The car must past the first sensor and stop
 before the second sensor.
When traffic light going to green, car at the
 junction with green lamp will move until
 past the second sensor.
Cont.
Cont.
Cont.
Cont.

Más contenido relacionado

La actualidad más candente

Application of Stack - Yadraj Meena
Application of Stack - Yadraj MeenaApplication of Stack - Yadraj Meena
Application of Stack - Yadraj MeenaDipayan Sarkar
 
Stack application
Stack applicationStack application
Stack applicationStudent
 
Queue-Data Structure
Queue-Data StructureQueue-Data Structure
Queue-Data StructurePaurav Shah
 
Applications of stack
Applications of stackApplications of stack
Applications of stackeShikshak
 
Queue in Data Structure
Queue in Data Structure Queue in Data Structure
Queue in Data Structure Janki Shah
 
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...AAKASH KUMAR
 
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CSAAKASH KUMAR
 
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CSAAKASH KUMAR
 
Compiler presention
Compiler presentionCompiler presention
Compiler presentionFaria Priya
 
Stack data structure
Stack data structureStack data structure
Stack data structureTech_MX
 
Deque and its applications
Deque and its applicationsDeque and its applications
Deque and its applicationsJsaddam Hussain
 
Stack and its Applications : Data Structures ADT
Stack and its Applications : Data Structures ADTStack and its Applications : Data Structures ADT
Stack and its Applications : Data Structures ADTSoumen Santra
 

La actualidad más candente (20)

Application of Stack - Yadraj Meena
Application of Stack - Yadraj MeenaApplication of Stack - Yadraj Meena
Application of Stack - Yadraj Meena
 
Stack application
Stack applicationStack application
Stack application
 
Queue-Data Structure
Queue-Data StructureQueue-Data Structure
Queue-Data Structure
 
Applications of stack
Applications of stackApplications of stack
Applications of stack
 
Queue in Data Structure
Queue in Data Structure Queue in Data Structure
Queue in Data Structure
 
Unit 3 stack
Unit   3 stackUnit   3 stack
Unit 3 stack
 
Conversion of Infix To Postfix Expressions
Conversion of Infix To Postfix Expressions Conversion of Infix To Postfix Expressions
Conversion of Infix To Postfix Expressions
 
Stack
StackStack
Stack
 
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
 
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
 
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
 
Compiler presention
Compiler presentionCompiler presention
Compiler presention
 
Stack data structure
Stack data structureStack data structure
Stack data structure
 
Deque and its applications
Deque and its applicationsDeque and its applications
Deque and its applications
 
Stack
StackStack
Stack
 
stack presentation
stack presentationstack presentation
stack presentation
 
Stack and its Applications : Data Structures ADT
Stack and its Applications : Data Structures ADTStack and its Applications : Data Structures ADT
Stack and its Applications : Data Structures ADT
 
Stacks fundamentals
Stacks fundamentalsStacks fundamentals
Stacks fundamentals
 
Stack
StackStack
Stack
 
Stacks in c++
Stacks in c++Stacks in c++
Stacks in c++
 

Destacado

Plan Cambodia For Linked In
Plan Cambodia For Linked InPlan Cambodia For Linked In
Plan Cambodia For Linked Inmegsandham
 
Homenagem para luiz e marcos (shared using VisualBee)
Homenagem para luiz e marcos 
 (shared using VisualBee)Homenagem para luiz e marcos 
 (shared using VisualBee)
Homenagem para luiz e marcos (shared using VisualBee)VisualBee.com
 
Revised Developement Plan, Ahmedabad 2013 - 2021
Revised Developement Plan, Ahmedabad 2013 - 2021Revised Developement Plan, Ahmedabad 2013 - 2021
Revised Developement Plan, Ahmedabad 2013 - 2021Manaan Choksi
 

Destacado (6)

Plan Cambodia For Linked In
Plan Cambodia For Linked InPlan Cambodia For Linked In
Plan Cambodia For Linked In
 
LFA Role
LFA RoleLFA Role
LFA Role
 
RBM and LFA
RBM and LFARBM and LFA
RBM and LFA
 
Lfa
LfaLfa
Lfa
 
Homenagem para luiz e marcos (shared using VisualBee)
Homenagem para luiz e marcos 
 (shared using VisualBee)Homenagem para luiz e marcos 
 (shared using VisualBee)
Homenagem para luiz e marcos (shared using VisualBee)
 
Revised Developement Plan, Ahmedabad 2013 - 2021
Revised Developement Plan, Ahmedabad 2013 - 2021Revised Developement Plan, Ahmedabad 2013 - 2021
Revised Developement Plan, Ahmedabad 2013 - 2021
 

Similar a fyp....fyp.....fyp.....

Control system-toolbox-in-scilab
Control system-toolbox-in-scilabControl system-toolbox-in-scilab
Control system-toolbox-in-scilabsundar79
 
Introduction to Control systems in scilab
Introduction to Control systems in scilabIntroduction to Control systems in scilab
Introduction to Control systems in scilabScilab
 
Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record Yuvraj Singh
 
Ecd302 unit 05(misc simulation tools)(new version)
Ecd302 unit 05(misc simulation tools)(new version)Ecd302 unit 05(misc simulation tools)(new version)
Ecd302 unit 05(misc simulation tools)(new version)Xi Qiu
 
Fpga applications using hdl
Fpga applications using hdlFpga applications using hdl
Fpga applications using hdlSankarshan D
 
A Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB SimulinkA Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB SimulinkJaewook. Kang
 
Dot matrix display design using fpga
Dot matrix display design using fpgaDot matrix display design using fpga
Dot matrix display design using fpgaHossam Hassan
 
Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Kshitij Singh
 
Archi Modelling
Archi ModellingArchi Modelling
Archi Modellingdilane007
 
Programmable logic array
Programmable logic arrayProgrammable logic array
Programmable logic arrayHuba Akhtar
 
2 marks DPCO.pdf
2 marks DPCO.pdf2 marks DPCO.pdf
2 marks DPCO.pdfVhhvf
 
Ceng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer AdderCeng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer Addergueste731a4
 
High Speed radix256 algorithm using parallel prefix adder
High Speed radix256 algorithm using parallel prefix adderHigh Speed radix256 algorithm using parallel prefix adder
High Speed radix256 algorithm using parallel prefix adderIJMER
 
A Simple Communication System Design Lab #2 with MATLAB Simulink
A Simple Communication System Design Lab #2 with MATLAB SimulinkA Simple Communication System Design Lab #2 with MATLAB Simulink
A Simple Communication System Design Lab #2 with MATLAB SimulinkJaewook. Kang
 
Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Amairullah Khan Lodhi
 
CSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docx
CSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docxCSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docx
CSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docxannettsparrow
 

Similar a fyp....fyp.....fyp..... (20)

Control system-toolbox-in-scilab
Control system-toolbox-in-scilabControl system-toolbox-in-scilab
Control system-toolbox-in-scilab
 
Introduction to Control systems in scilab
Introduction to Control systems in scilabIntroduction to Control systems in scilab
Introduction to Control systems in scilab
 
Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record
 
Ecd302 unit 05(misc simulation tools)(new version)
Ecd302 unit 05(misc simulation tools)(new version)Ecd302 unit 05(misc simulation tools)(new version)
Ecd302 unit 05(misc simulation tools)(new version)
 
Fpga applications using hdl
Fpga applications using hdlFpga applications using hdl
Fpga applications using hdl
 
A Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB SimulinkA Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB Simulink
 
Dot matrix display design using fpga
Dot matrix display design using fpgaDot matrix display design using fpga
Dot matrix display design using fpga
 
Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1
 
Csd01
Csd01Csd01
Csd01
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
Computer Architecture Assignment Help
Computer Architecture Assignment HelpComputer Architecture Assignment Help
Computer Architecture Assignment Help
 
Archi Modelling
Archi ModellingArchi Modelling
Archi Modelling
 
Programmable logic array
Programmable logic arrayProgrammable logic array
Programmable logic array
 
2 marks DPCO.pdf
2 marks DPCO.pdf2 marks DPCO.pdf
2 marks DPCO.pdf
 
Ceng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer AdderCeng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer Adder
 
High Speed radix256 algorithm using parallel prefix adder
High Speed radix256 algorithm using parallel prefix adderHigh Speed radix256 algorithm using parallel prefix adder
High Speed radix256 algorithm using parallel prefix adder
 
A Simple Communication System Design Lab #2 with MATLAB Simulink
A Simple Communication System Design Lab #2 with MATLAB SimulinkA Simple Communication System Design Lab #2 with MATLAB Simulink
A Simple Communication System Design Lab #2 with MATLAB Simulink
 
Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual
 
CSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docx
CSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docxCSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docx
CSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docx
 

Más de VisualBee.com

PowerPoint Presentation (shared using VisualBee)
PowerPoint Presentation (shared using VisualBee)PowerPoint Presentation (shared using VisualBee)
PowerPoint Presentation (shared using VisualBee)VisualBee.com
 
PowerPoint Presentation (shared using http://VisualBee.com). (shared using Vi...
PowerPoint Presentation (shared using http://VisualBee.com). (shared using Vi...PowerPoint Presentation (shared using http://VisualBee.com). (shared using Vi...
PowerPoint Presentation (shared using http://VisualBee.com). (shared using Vi...VisualBee.com
 
The bible and I (shared using VisualBee)
The bible and I (shared using VisualBee)The bible and I (shared using VisualBee)
The bible and I (shared using VisualBee)VisualBee.com
 
bb (shared using VisualBee)
bb  
(shared using VisualBee)bb  
(shared using VisualBee)
bb (shared using VisualBee)VisualBee.com
 
Chua nhat III mua Thuong Nien - Nam C
Chua nhat III mua Thuong Nien - Nam CChua nhat III mua Thuong Nien - Nam C
Chua nhat III mua Thuong Nien - Nam CVisualBee.com
 
LA FE QUE AGRADA A DIOS
LA FE QUE AGRADA A DIOSLA FE QUE AGRADA A DIOS
LA FE QUE AGRADA A DIOSVisualBee.com
 
Martin Luther king JR
Martin Luther king JRMartin Luther king JR
Martin Luther king JRVisualBee.com
 
Diapositive 1 (shared using http://VisualBee.com).
Diapositive 1 (shared using http://VisualBee.com).Diapositive 1 (shared using http://VisualBee.com).
Diapositive 1 (shared using http://VisualBee.com).VisualBee.com
 
2013. 1.27 worship report
2013. 1.27 worship report2013. 1.27 worship report
2013. 1.27 worship reportVisualBee.com
 

Más de VisualBee.com (20)

PowerPoint Presentation (shared using VisualBee)
PowerPoint Presentation (shared using VisualBee)PowerPoint Presentation (shared using VisualBee)
PowerPoint Presentation (shared using VisualBee)
 
PowerPoint Presentation (shared using http://VisualBee.com). (shared using Vi...
PowerPoint Presentation (shared using http://VisualBee.com). (shared using Vi...PowerPoint Presentation (shared using http://VisualBee.com). (shared using Vi...
PowerPoint Presentation (shared using http://VisualBee.com). (shared using Vi...
 
The bible and I (shared using VisualBee)
The bible and I (shared using VisualBee)The bible and I (shared using VisualBee)
The bible and I (shared using VisualBee)
 
bb bb b
bb bb bbb bb b
bb bb b
 
bb (shared using VisualBee)
bb  
(shared using VisualBee)bb  
(shared using VisualBee)
bb (shared using VisualBee)
 
bb
bbbb
bb
 
loki
lokiloki
loki
 
ASH WEDNESDAY
ASH WEDNESDAYASH WEDNESDAY
ASH WEDNESDAY
 
hijospreferidos
hijospreferidoshijospreferidos
hijospreferidos
 
yo
yoyo
yo
 
hijo preferido
hijo preferidohijo preferido
hijo preferido
 
Alcoholismo
AlcoholismoAlcoholismo
Alcoholismo
 
west love
west lovewest love
west love
 
jaa
jaajaa
jaa
 
Chua nhat III mua Thuong Nien - Nam C
Chua nhat III mua Thuong Nien - Nam CChua nhat III mua Thuong Nien - Nam C
Chua nhat III mua Thuong Nien - Nam C
 
LA FE QUE AGRADA A DIOS
LA FE QUE AGRADA A DIOSLA FE QUE AGRADA A DIOS
LA FE QUE AGRADA A DIOS
 
Martin Luther king JR
Martin Luther king JRMartin Luther king JR
Martin Luther king JR
 
Diapositive 1 (shared using http://VisualBee.com).
Diapositive 1 (shared using http://VisualBee.com).Diapositive 1 (shared using http://VisualBee.com).
Diapositive 1 (shared using http://VisualBee.com).
 
my cara de empanaaa
my cara de empanaaamy cara de empanaaa
my cara de empanaaa
 
2013. 1.27 worship report
2013. 1.27 worship report2013. 1.27 worship report
2013. 1.27 worship report
 

fyp....fyp.....fyp.....

  • 1. PROJECT DEVELOPEMENT FUZZY SYSTEM • Creating membership function using MATLAB application. • 4 input membership function. • 1 output membership function. • Defuzzification using MAMDANI style.
  • 2. Cont. …… • Create rule evaluation. • Choose more usable rule for our traffic light system. • Do try and error to find rule that give more logic condition. • Cut any rule that give same result.  Testing fuzzy system using MATLAB to check condition of our system before implement in PLC.
  • 3. MEMBERSHIP FUNCTION (MATLAB) Input Membership Function
  • 4. Input MF Membership variable : very low, low, medium, high, very high. Very low [0 0 2.5] Low [0 2.5 5] Medium [2.5 5 7.5] High [5 7.5 10] Very high [7.5 10 10]
  • 6. Output MF Membership variable : very low, low, medium, high, very high. Very low [0 0 10] Low [0 10 20] Medium [10 20 30] High [20 30 40] Very high [30 40 40]
  • 8. Evaluation of RULE Use MAMDANI style. Use min-max. Difuzzification using centroid of gravity. On our project we have use 45 rules to make our system function properly.
  • 9. Creating Fuzzy using Cx-Process Tool Create fuzzy block diagram. Because our output for fuzzy is four, so we need to construct four fuzzy block diagram.  Create user link table to read/write (communicate) between LCB (Cx- Process) and CPU PLC (Cx-Programmer).
  • 10. Cont. Need to create input MF, up to 8 input. (but in our project we just use 4 input; X1, X2, X3, X4.) Input membership variable: NL: 0:2500 NS: 0:2500:5000 ZR: 2500:5000:7500 PS: 5000:7500:10000 PL: 7500:10000
  • 11. Cont. Need to create output MF, up to 2 output; Y1 and Y2. But, in our project just use 1 output; Y1. Use horizontal singleton. Output membership variable: NL: 5000 NS: 10000 ZR: 15000 PS: 20000 PL: 25000
  • 12. Cont. RULES Rules express experience and know-how in IF- THEN statements. For example, IF (you're close to the car in front of you) & (you're going very fast) THEN (you have to step on the brake very hard). Up to 64 rules. In our project using 45 rules. Up to 8 conditions can be set for inputs X1 to X8, and up to two conclusions can be set for outputs Y1 and Y2.
  • 13. Cont. Conditions The labels that will be used for inputs X1 to X8 are listed in order separated by colons. For example, if label NS is used for input X1 and labels ZR, PL, PL, NS, ZR, PL, and PL are likewise used for inputs X2, X3, X4, X5, X6, X7, and X8, then NS:ZR:PL:PL:NS:ZR:PL:PL is specified.
  • 14. Cont. Conclusions The labels that will be used for outputs Y1 and Y2 are listed in order separated by colons. For example, if ZR is used for output Y1 and PL is used for output Y2, then ZR:PL is specified A slash is placed between the conditions and conclusions. For example, the above rule would be specified as follows: NS:ZR:PL:PL:NS:ZR:PL:PL/ZR:PL
  • 15. Cont. Set a hyphen for inputs or outputs for which labels are not set. For example, to set NL for input X1, PL for input X2, and ZR for output Y1, then the rule "IF (Input X1 is NL and Input X2 is PL), THEN (Output Y1 is ZR)" would be specified as follows for ITEM 101: NL:PL:-:-:-:-:-:-/ZR:-
  • 17.
  • 18. Creating ladder diagram (cx- programmer)  used to create ladder diagram for input and output of traffic light system.  Use a discrete sensor (photoelectric switch) to detect presence vehicle for each junction.  Use counter in ladder to count vehicle which detect by photoelectric switch.  Data from counter is transform to LCB (Fuzzy system) to process by fuzzy system.  Data from LCB then send to PLC to generate output for traffic light.  Data from LCB is Hex, so it must create a ladder diagram to make is useful for generate timer for traffic light system.
  • 19. Testing & Result  Using MATLAB  Guide to test using Matlab:  Put number of vehicles for each junction at bottom pages and look for output at top right pages. Put number of vehicles here
  • 20. Cont. Look for output here
  • 22. Testing in real system (PLC with Fuzzy system) Guide to testing; The car come from each junction with random number. The car must past the first sensor and stop before the second sensor. When traffic light going to green, car at the junction with green lamp will move until past the second sensor.
  • 23. Cont.
  • 24. Cont.
  • 25. Cont.
  • 26. Cont.