TOC PREV NEXT

16.6 DESIGN CASES


16.6.1 If-Then

Problem: Convert the following C/Java program to ladder logic.



Solution:



Figure 251 C Program Implementation

16.6.2 Traffic Light

Problem: Design and write ladder logic for a simple traffic light controller that has a single fixed sequence of 16 seconds for both green lights and 4 second for both yellow lights. Use either stacks or sequencers.

Solution: The sequencer is the best solution to this problem.



Figure 252 An Example Traffic Light Controller
TOC PREV NEXT