ASSIGNMENT PROBLEMS
2. Using 3 different methods write a program that will continuously cycle a pattern of 12 lights
connected to a PLC output card. The pattern should have one out of every three lights set. The
light patterns should appear to move endlessly in one direction.
3. Look at the manuals for the status memory in your PLC.
a) Describe how to run program 7 when a divide by zero error occurs.
b) Write the ladder logic needed to clear a PLC fault.
c) Describe how to set up a timed interrupt to run program 5 every 2 seconds.
4. Write a program that will run once every 5 seconds and calculate the average of the numbers
from F8:0 to F8:19, and store the result in F8:20. It will also determine the median and store it
in F8:21.
5.Write a program for SPC (Statistical Process Control) that will run once every 20 minutes using
timed interrupts. When the program runs it will calculate the average of the data values in
memory locations F8:0 to F8:39 (Note: these values are written into the PLC memory by
another PLC using DH+). The program will also find the range of the values by subtracting the
maximum from the minimum value. The average will be compared to upper (F8:50) and lower
(F8:51) limits. The range will also be compared to upper (F8:52) and lower (F8:53) limits. If
the average, or range values are outside the limits, the process will stop, and an ‘out of control’
light will be turned on. The process will use start and stop buttons, and when running it will set
memory bit B3:0/0.
6. Develop a ladder logic program to control a light display outside a theater. The display consists
of a row of 8 lights. When a patron walks past an optical sensor the lights will turn on in
sequence, moving in the same direction. Initially all lights are off. Once triggered the lights
turn on sequentially until all eight lights are on 1.6 seconds latter. After a delay of another 0.4
seconds the lights start to turn off until all are off, again moving in the same direction as the
patron. The effect is a moving light pattern that follows the patron as they walk into the theater.
7. Write the ladder logic diagram that would be required to execute the following data manipulation
for a preventative maintenance program.
i) Keep track of the number of times a motor was started with toggle switch #1.
ii) After 2000 motor starts turn on an indicator light on the operator panel.
iii) Provide the capability to change the number of motor starts being tracked, prior
to triggering of the indicator light. HINT: This capability will only require the
change of a value in a compare statement rather than the addition of new lines
of logic.
iv) Keep track of the number of minutes that the motor has run.
v) After 9000 minutes of operation turn the motor off automatically and also turn
on an indicator light on the operator panel.
8. Parts arrive at an oven on a conveyor belt and pass a barcode scanner. When the barcode scanner
reads a valid barcode it outputs the numeric code as 32 bits to I:001 and I:002 and sets
ليست هناك تعليقات:
إرسال تعليق