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

8      7     6      5  Station  4  3   2      1
                                                                                                   File
                                              B3:0/7  B3:0/6  B3:0/5  B3:0/4  B3:0/3  B3:0/2  B3:0/1  B3:0/0
                                                                                                  #B3:0
                                        Part  No  0    0     0      0     0      0     0      0
                                       present  Yes  1  1    1      1      1     1      1     1
                                                LS1           Oven 1                Oven 2
                                              (Hanger)


                                                      1      2    3    4    5    6    7   8



                                                                                                (Part exit)
                                                LS2                                           LS3
                                           (Part enter)
                                                  Undercoat               Topcoat
                                                  spray gun 1            spray gun 2             Storage


                                                             Reset   PL1
                               Figure 12-28  Spray-painting operation controlled by a shift left register.


                                    Inputs                Ladder logic program                Outputs
                              L1
                                 Clock             LS1
                                 pulse                    BSL                                   SOL 1  L2
                                       LS1                BIT SHIFT LEFT        EN
                                       I:1/1              File          #B3:0                 Spray gun 1
                                                          Control        R6:1   DN       0:2/0
                                 Data
                                 pulse                    Bit address    I:1/2                  SOL 2
                                       LS2                Length           8                  Spray gun 2
                                       I:1/2     B3:0/0                        SOL 1
                                  Part                                                    0:2/1
                                  exit
                                       LS3       B3:0/5                        SOL 2             PL1
                                       I:1/3
                                                                                         0:2/2
                                       Reset      LS2
                                       I:1/4              CTU
                                                          COUNT-UP COUNTER      CU
                                                          Counter        C5:1
                                                          Preset                DN
                                                          Accumulated
                                                   LS3
                                                          CTU
                                                          COUNT-UP COUNTER      CU
                                                          Counter        C5:2
                                                          Preset                DN
                                                          Accumulated
                                                  Reset                        C5:1
                                                                                RES
                                                                               C5:2
                                                                                RES
                                                                                PL1
                                                          EQU
                                                          EQUAL
                                                          Source A    C5:1.ACC
                                                          Source B   C5:2.ACC

                              Figure 12-29  Spray-painting operation program.



               270        Chapter 12  Sequencer and Shift Register Instructions







          pet73842_ch12_252-280.indd   270                                                                              03/11/15   7:20 PM
   284   285   286   287   288   289   290   291   292   293   294