Chapter 7 Function Block and Library The program in PARTS_CNT functions to count the parts which are conveyed. Please refer to section 6.2.2, and create the three symbols shown below in the local symbol table in the PARTS_CNT window. The initial value of CNT_DT is 0. Please refer to chapter 4~chapter 6, and write the program shown below. The function block EQUIP_TRIG is called by the POU GLUING . Please refer to section 6.2.2, and declare the two function block instances shown below in the local symbol table in the GLUING window. Write the program shown below. A function block is inserted into a program in a way in which an applied instruction is inserted into a program.
Drag the function block EQUIP_TRIG in the project management area to the position where it will be inserted. If there is a function block instance under EQUIP_TRIG in the porject management area, users have to drag the function block definition rather than the function block instance. 7-39