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

10





                                   Data Manipulation


                                   Instructions










                                                                    Ladder logic program
                                                         Lime 1   B3:0/0
                                     L1  Inputs                               COP
                                                                   OSR        COPY FILE
                                                                              Source                #N12:0
                                                                              Destination        #N7:50
                                                                              Length                          5
                                            Lime 1
                                             Cola 2      Cola 2   B3:0/1      COP
                                            Cherry 3               OSR        COPY FILE
                                                                              Source                #N12:5
                                                                              Destination        #N7:50
                                             1                                Length                          5
                                               2
                                                         Cherry 3
                                                                  B3:0/2      COP
                                             3
                                                                   OSR        COPY FILE
                                       Selector switch                        Source               #N12:10
                                                                              Destination        #N7:50
                                                                              Length                          5





                   Chapter Objectives


                   After completing this chapter, you will be able to:   Data manipulation involves transferring data and
                                                                         operating on data with math functions, data con-
                      •  Execute data transfer of word and file level instructions
                       from one memory location to another               versions, data comparison, and logical opera-
                      •  Interpret data transfer and data compare instructions as   tions. This chapter covers both data manipulation
                       they apply to a PLC program                       instructions that operate on word data and those
                      •  Compare the operation of discrete I/Os with that of   that operate on file data, which involve multiple
                       multibit and analog types                         words. Data manipulations are performed inter-
                      •  Understand the basic operation of PLC closed-loop   nally in a manner similar to that used in micro-
                       control systems                                   computers. Examples of processes that need
                                                                         these operations on a fast and continuous basis
                                                                         are studied.








                                                                                                                        207







          pet73842_ch10_207-233.indd   207                                                                              03/11/15   4:02 PM
   221   222   223   224   225   226   227   228   229   230   231