Page 251 - Electronic Mechanic - TP - Volume - 2
P. 251

ELECTRONICS MECHANIC - CITS





































           Create static data in a global data block

           Create a “Bool” data type tag named “static_01” in the “Data_block_1” work area.
































           Create a program in Main [OB1]
           In the “Program blocks” folder of your PLC, double-click the “Main [OB1]” instruction. Copy the program shown
           in the next picture.
           You will find the bit logic operations in the “Bit logic” folder in the “Instructions” pane on the “Instructions” task card.
           Drag’n’Drop the “Normally open contacts”, “the Output coil”, and the “Set/Reset flip-flop” into “Network 1” of your
           “Main [OB1]” work area, according to the picture shown below. Make sure that the input fields are configured in
           the same way as shown in the picture and in the table.





                                                           234
                                    CITS : E & H - Electronics Mechanic  - Exercise 183
   246   247   248   249   250   251   252   253   254   255   256