Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

ETS-3543C (PLC)

Introduction
In this practice the student will learn to use the comparison instruction in the
operation of the PLC. The Traffic light controller lab will be revisited and the student
will use word comparison instructions to run it more effeciently

Part I- Using the PSIM environment

Word Comparison Instructions

Page

From the Main Menu of the PSIM program, select the I/O simulation display.
Toggle Function Key [F2] until the minimum I/O Data Table is displayed in the
upper box of the display, and the Counter Table is displayed in the lower box of
the Data table display.
Select the Rung Editor [F5] and enter the following ladder Logic program.

Instructor: Magno R. Guillen, PhD

ETS-3543C (PLC)

Once you have entered your program, select the Program Utility menu and save your program to
disk. Now exit the Rung Editor and return to the I/O simulation Display.
Open and Close switch I:1/00 a number of times and carefully observe the incrementing of C1's
accumulator and the operation of the 3 lights which are controlled by your program.
Continue incrementing the counter until the "RES" instruction in rung #2 is activated.
What was the highest count achieved before the "RES" instruction zeroed the accumulator?
Highest accumulator count: ________
Increment the counter again through its range and note the accumulator values which allow the
lights O:1/00, O:1/01 and O:1/02 to be energized. Note the values on the appropriate rungs listed
below.

Part II
Traffic Control using Comparison Instructions

Exit to the Main Menu and select the Traffic Light simulation.
Using your knowledge of word comparison instructions, develop a traffic light control
program which operates via a single timer.
Red = O:1/00
Amber = O:1/05

8 Sec.

4 Sec.

Amber = O:1/01

Red = O:1/04
8 Sec.

4 Sec.

Page

Green = O:1/06

Green = O:1/02

Instructor: Magno R. Guillen, PhD

ETS-3543C (PLC)

Traffic Light Control With Delayed Green

Modify your program so that there is a 1 second period when both directions will have
their RED lights illuminated. Using the timing diagram below, note that two 1 second
periods are required in this sequence.

Red = O:1/00
Green = O:1/06

Amber = O:1/05

8 Sec.

4 Sec.

Green = O:1/02

Amber =
O:1/01

Red = O:1/04
1

8 Sec.

4 Sec.

Page

Write a report of your experience in this simulation. Follow the guidelines for lab report
writing. The lab report for this practice due on March 31ST

Instructor: Magno R. Guillen, PhD

You might also like