Chapter 5 POU and Task 5.6 Example 5.6.1 Programming TASK and POU The examples created in chapter 4 will be rewritten in TASK and POU program. The program created in chapter 4 is shown below. It will be divided into three parts according to the functions listed below. This part of the program functions to start or stop the system. This part of the program functions to inject the glue. This part of the program functions to count the parts which are conveyed. This section aims at the architecture of a program. The contents related to configuring hardware, setting parameters, testing a program, and debugging a program are the same as the contents of chapter 4.
Users can try to complete the related setting by themselves. 5-39