Page 201 - Programmable Logic Controllers, Fifth Edition - Mobile version
P. 201

kit. The controller must stop the take-up spool
                                                                          at a predetermined amount of resistors (100). A
                                                                          worker on the floor will then cut the resistor strip
                                                                          and place it in the kit. The circuit operates as
                                                                          follows:
                                                                          •  A start/stop pushbutton station is used to turn the
                                                                            spool motor drive on and off manually.
                                Through-beam            Spool             •  A through-beam sensor counts the resistors as
                                   sensor             motor drive           they pass by.
               Figure 8-45  Control process for Problem 10.               •  A counter preset for 100 (the amount of
                                                                            resistors in each kit) will automatically stop
                                                                            the take-up spool when the accumulated count
                    1000 for quality control or inspection purposes.        reaches 100.
                    The circuit operates as follows:                      •  A second counter is provided to count the grand
                    •  A start/stop pushbutton station is used to turn the   total used.
                      conveyor motor on and off.                          •  Manual reset buttons are provided for each
                    •  A proximity sensor counts the parts as they pass     counter.
                      by on the conveyor.                            11. Write a program that will latch on a light 20 s after
                    •  When a count of 1000 is reached, the counter’s     an input switch has been turned on. The timer will
                      output activates the gate solenoid, diverting the   continue to cycle up to 20 s and reset itself until
                      part to the inspection line.                        the input switch has been turned off. After the third
                    •  The gate solenoid is energized for 2 s, which      time the timer has timed to 20 s, the light will be
                      allows enough time for the part to continue to the   unlatched.
                      quality control line.                          12. Write a program that will turn a light on when a
                    •  The gate returns to its normal position when the   count reaches 20. The light is then to go off when a
                      2-s time period ends.                               count of 30 is reached.
                    •  The counter resets to 0 and continues to      13.  Write a program to implement the box-stacking
                      accumulate counts.                                  process illustrated in Figure 8-46. This applica-
                    •  A reset pushbutton is provided to reset the        tion requires the control of a conveyor belt that
                      counter manually.                                   feeds a mechanical stacker. The stacker can stack
                 9. Write a program that will increment a counter’s       various numbers of cartons of ceiling tile onto
                    accumulated value 1 count every 60 s. A second        each pallet (depending on the pallet size and the
                    counter’s accumulated value will increment 1          preset value of the counter). When the required
                    count every time the first counter’s accumulated      number of cartons has been stacked, the conveyor
                    value reaches 60. The first counter will reset when   is stopped until the loaded pallet is removed and
                    its accumulated value reaches 60, and the second      an empty pallet is placed onto the loading area. A
                    counter will reset when its accumulated value         photoelectric sensor will be used to provide count
                    reaches 12.                                           pulses to the counter after each carton passes by.
               10.  Write a program to implement the process illus-       In addition to a conveyor motor start/stop station,
                    trated in Figure 8-45. A company that makes elec-     a remote reset button is provided to allow the
                    tronic assembly kits needs a counter to count and     operator to reset the system from the forklift after
                    control the number of resistors placed into each      an empty pallet is placed onto the loading area.


                                                Cartons of                        Reflector
                                                ceiling tile

                                                                                           Stacker  Pallet


                                                                                  Sensor

                             Figure 8-46  Control process for Problem 13.



               182        Chapter 8  Programming Counters







          pet73842_ch08_156-183.indd   182                                                                              03/11/15   3:58 PM
   196   197   198   199   200   201   202   203   204   205   206