Assignment 1
Assignment 1
5. Design the ladder diagram for a device that will count parts as they pass by an inspection
stand. The sensing device for the PLC is a switch that will close each time a part passes. This
switch is connected to IN1 of the PLC. A reset switch, IN2, is also connected to the PLC to
allow the operator to manually reset the counter. After 15 parts have passed the inspection
stand, the PLC is to reset the counter to again begin counting parts and turn on a light which
must stay on until reset by a second reset switch connected to IN3. The output from the PLC
that lights the light is OUT111. 7. Design the ladder diagram for a program which needs a timer
which will cause a coil CR24 to energize for one scan every 5.5 seconds.
6. It is desired to implement a switch system similar to a three-way switch system in house
wiring, that is, a light may be turned on or off from either of two switches at doors on opposite
ends of the room. If the light is turned on at one switch, it may be turned off at the other
switch
and vice versa. Draw the ladder logic rung which will provide this. Define the two switches
and IN10 and IN11 and the output which will control the light as OUT18.
7. Write a program for the following: The temperature reading from a thermocouple is to be
read and stored in a memory location every 5 minutes for 4 hours. The temperature reading is
brought in continuously and stored in address N7:150. File #7:200 is to contain the data from
the last full 4-hour period.
8. Devise a ladder logic program of how the MUL instruction is used as part of an oven
temperature control program. The operation of the program can be summarized as follows:
• The PLC calculates the upper and lower dead band, or off/on limits, about the set-point.
• Upper and lower temperature limits are set automatically at 61 percent regardless of the set-
point value.
• Set-point temperature is adjusted by means of the thumbwheel switch.
• The analog thermocouple interface module is used to monitor the current temperature of the
oven.
• In this example, the set-point temperature is 400°F.
• Therefore, the electric heaters will be turned on when the temperature of the oven drops to
less than 396°F and stay on until the temperature rises above 404°F.
• If the set-point is changed to 100°F, the dead band remains at 61 percent, with the lower limit
being 99°F and the upper limit being 101°F.
• The number stored in word N7:1 represents the upper temperature limit, and the number
stored in word N7:2 represents the lower limit.
9. To illustrate the purpose and function of the sequencer file we will examine the operation of
the four-step sequence process shown in Fig. 2 . This sequencer is to be used to control traffic
in two directions.
10. The process of Figure. 3 illustrates a spray-painting operation. Write a ladder logic for
the same.
Figure. 3 Spray-painting operation
11. A product moves continuously down an assembly line that has four stations, as shown
in Figure. 4.
• The product enters the inspection zone, where its presence is sensed by the proximity switch.
• The inspector examines it and activates a reject button if the product fails inspection.
• If the product is defective, reject status lights come on at stations 1, 2, and 3 to tell the
assembler to ignore the part.
• When a defective part reaches station 4, a diverter gate is activated to direct that part to a
reject bin.
• Using whatever PLC bit shift register you are most familiar with, develop a program to
implement this process.
13. Figure. 6 illustrates how a programmable logic controller can be used in the control of
a PID loop. The operation of the PID loop can be summarized as follows:
• The process variable (pressure) is measured and feedback is generated.
• The PLC program compares the feedback to the set point and generates an error signal.
• The error is examined by the PID loop calculation in three ways: with proportional, integral,
and derivative methodology.
• The controller then issues an output to correct for any measured error by adjustment of the
position of the variable flow outlet valve.
14. Devise a ladder logic program for tank filling and emptying operation as shown in Figure.