摘要 |
PURPOSE:To attain processing while securing a prescribed period without using other processing unit by allowing a program of processing within a prescribed period belonging to all of processing loops to be executed at a prescribed period and allowing other program belonging thereto separately to be executed in other period. CONSTITUTION:When a program execution command 1 is given and the pre- processing is finished, a prescribed period timer is started and a timeup flag 3 is generated thereby. Execution processing loops LP1, LP2 are decided and selected alternately, and when the loop LP1 is selected this time and an execution allowable flag 5a is generated, the program applying application of processing A-C is executed sequentially. The processing time is expressed as (a). When the program is finished, the in-loop is maintained till the timeup. When a prescribed period (e) elapses and timeup takes place, the timer is started again and the loop LP2 is selected this time and an execution allowable flag 5b is generated, then the program applying application of processings A, D, E is executed sequentially, and in-loop is maintained when the program is finished at a time (b). The processing above is repeated till a stop command 2 is generated. |