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

L1    Input        Ladder logic program  Output  L2   10.  With reference to the math instruction program
                                                                              shown in Figure 11-41, when the input goes
                                                           Fahrenheit
                      Celsius         MUL                                     true, what value will be stored at each of the
                       1              MULTIPLY                                following?
                                      Source A   I:012
                      2       I:012                      O:013                a. N7:3
                                      Source B      9
                      3                                                       b. N7:4
                      Thumbwheel      Destination  N7:0      LED              c. N7:5
                        switch                             Display            d. N7:6
                                      DIV
                                      DIVIDE                             11. Two part conveyor lines, A and B, feed a main
                                      Source A   N7:0
                                                                              conveyor line, M. A third conveyor line, R,
                                      Source B      5                         removes rejected parts a short distance away from
                                      Destination  N7:1                       the main conveyor. Conveyors A, B, and R have
                                                                              parts counters connected to them. Construct a PLC
                                      ADD
                                      ADD                                     program to obtain the total parts output of main
                                      Source A    N7:1                        conveyor M.
                                      Source B     32                    12. A main conveyor has two conveyors, A and B,
                                      Destination  O:013                      feeding it. Feeder conveyor A puts six-packs of
                                                                              canned soda on the main conveyor. Feeder con-
                   Figure 11-39  Program for Problem 4.                       veyor B puts eight-packs of canned soda on the
                                                                              main conveyor. Both feeder conveyors have coun-
                                                                              ters that count the number of packs leaving them.
                    9. With reference to math instruction program shown       Construct a PLC program to give a total can count
                        in Figure 11-40, when the input goes true, what       on the main conveyor.
                        value will be stored at each of the following?
                        a. N7:3
                        b. N7:5
                        c. F8:1
                                                                                    Input
                                                                                             SUB
                                                                                             SUBTRACT
                              Input                                                          Source A       N7:1
                                       ADD                                                                   80
                                                                                             Source B       N7:2
                                                                                                             20
                                       ADD                                                   Destination    N7:3
                                       Source A       N7:1
                                                      208
                                       Source B       N7:2                                   MUL
                                                       114                                   MULTIPLY
                                       Destination    N7:3                                   Source A       N7:3
                                       MUL                                                   Source B         2
                                                                                             Destination    N7:4
                                       MULTIPLY
                                       Source A       N7:3
                                                                                             ADD
                                       Source B       N7:4                                   ADD
                                                        4                                    Source A       N7:4
                                       Destination    N7:5
                                                                                             Source B        24
                                       DIV
                                                                                             Destination    N7:5
                                       DIVIDE                                                SQR
                                       Source A       N7:5
                                                                                             SQUARE ROOT
                                                                                             Source         N7:5
                                       Source B   5.000000
                                                                                             Destination    N7:6
                                       Destination    F8:1
                   Figure 11-40  Program for Problem 9.                  Figure 11-41  Program for Problem 10.







                                                                                        Math Instructions  Chapter 11   251







          pet73842_ch11_234-251.indd   251                                                                              03/11/15   4:08 PM
   265   266   267   268   269   270   271   272   273   274   275