DESIGN CASES

15.5.1 If-Then

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

 

Solution:

 

Figure 15.1 C Program Implementation

15.5.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 15.1 An Example Traffic Light Controller