Top Banner
Data Acquisition and Automation Systems (ACOE347) Experiment #4 Software Counters – Car Parking Student’s Name: Semester: Date: Assessment: Assessment Point Weight Grade Exercises 20 Design Task Methodology 30 Presentation and discussion of results 30 Participation 20 Assessment Points’ Grade Comments:
9
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lab4

Data Acquisition and Automation Systems (ACOE347)

Experiment #4

Software Counters – Car Parking

Student’s Name:

Semester: Date:

Assessment:

Assessment Point Weight Grade

Exercises 20

Design Task Methodology 30

Presentation and discussion of results 30

Participation 20

Assessment Points’ Grade

Comments:

Page 2: Lab4

ACOE347: Data Acquisition and Automation Systems Experiment # 4

EXERCISES:

Exercise 1: Up Counter

Start the LADSIM simulator and select the I/O simulator.

Enter the ladder diagram shown in figure 1. Set the preset value of counter C1 to 5 and the Up/Down flag to Up.

Figure 1: Ladder diagram for exercise 1

Make sure that all switches are open and start the simulator.

Toggle the switch on inputs I1:00 and I1:01. Observe and record the accumulator value of C1 and the Up bit.

Figure 2: Timing diagram for exercise 1

Exercise 2: Down Counter

Start the LADSIM simulator and select the I/O simulator.

Enter the ladder diagram shown in figure 3. Set the preset value of counter C1 to 5, the accumulated value to 4 and the Up/Down flag to Down.

Page 1

Page 3: Lab4

ACOE347: Data Acquisition and Automation Systems Experiment # 4

Figure 3: Ladder diagram for exercise 2

Make sure that all switches are open and start the simulator.

Toggle the switch on inputs I1:00 and I1:01, as shown in figure 4(a). Observe and record the accumulator value of Counter C1 and the Dn bit.

Reset the simulator and repeat the above step to fill up the timing diagram shown in figure 4(b).

Figure 4: Timing diagram for exercise 2

Exercise 3: Up/Down Counter

Start the LADSIM simulator and select the I/O simulator.

Enter the ladder diagram shown in figure 3. Set the preset value of counter C1 to 8, and the accumulator value to 5.

Page 2

Page 4: Lab4

ACOE347: Data Acquisition and Automation Systems Experiment # 4

Figure 5: Ladder diagram for exercise 3

Make sure that all switches are open and start the simulator.

Toggle the switch on inputs I1:00 and I1:01. Observe and record the accumulator value of counter C1 and the UP and the DN bits.

Figure 6: Timing diagram for exercise 3

Exercise 4: Car Parking

Start the LADSIM simulator and select the “Car Parking” simulator.

Enter a ladder diagram that will open the Entry Gate (O:0) whenever a car is detected by the Entry Sensor (I:0). Whenever the entry gate opens, counter C1 must be incremented. The Preset value of counter C1 must be set to 8, since there are eight spaces in the parking area.

Page 3

Page 5: Lab4

ACOE347: Data Acquisition and Automation Systems Experiment # 4

Figure 7: Ladder diagram for exercise 4

Start the simulator and click on the car at the bottom of the simulator. Observe the behavior of the simulator.

DESIGN TASK:Develop a ladder diagram to control the entry and exit gates of the parking. Whenever a car is detected by the entry or exit sensors, the corresponding gate must remain open for four seconds. Use an Up/Down counter to keep track of the number of cars in the parking. When the parking is full the Full lamp must be ON and the entry gate must not open.

Methodology:

Page 4

Page 6: Lab4

ACOE347: Data Acquisition and Automation Systems Experiment # 4

Ladder Diagram:

Figure 7: Ladder diagram for exercise 4

Testing and Conclusions:

Page 5

Page 7: Lab4

ACOE347: Data Acquisition and Automation Systems Experiment # 4

QUESTIONS:1. Comment on the results obtained in Exercise 1.

2. Comment on the results obtained in Exercise 2.

3. Comment on the results obtained in Exercise 3.

4. Comment on the results obtained in Exercise 4.

Page 6