EasyManua.ls Logo

LSIS XBC-DR14E - Page 74

LSIS XBC-DR14E
384 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 5 Program Configuration and Operation Method
5- 23
(8) Verification of task program
(a) Is the task setting proper?
If task occurs frequently more than needed or several tasks occur in one scan at the same time, scan time
may lengthen or be irregular. In case not possible to change the task setting, verify max. scan time.
(b) Is the priority of task arranged well?
The low priority task program shall be delayed by the high priority task program, which results in disabling
the processing within the correct time and even task collision may occur as next task occurs in the state
that the execution of previous task is delayed. Consider the emergency of task and execution time etc
when setting the priority.
(c) Is the Task Program written in shortest?
If the execution time of Task Program is longer, scan time may lengthen or be irregular. Even it may cause
the collision of task program. Write the execution time as short as possible. (Especially, when writing the
cyclic task program, write the execution time so that the task program can be executed within 10% cycle of
the shortest task among several tasks.)
(d) Is program protection for the high priority task needed during program execution?
If other task is inserted during task program execution, complete the task in execution and operate the
standby tasks in the order of high priority. In case that it is not allowed to insert other task in Scan Program,
prevent the insert partially by using „DI and „EI application instruction. The problem may occur while
processing the global variables used commonly with other program or special or communication module.
(9) Program configuration and processing example
If task and program are registered as below.
Interrupt type
Interrupt name
Priority
Task No.
Program
Cycle time
10 _cycle time
3
0
Program 1
Internal device
Internal device_M00
5
16
Program 2
I/O
I/O_P00
2
8
Program 3
1) Scan program name: Scan Program
2) Execution time respective program: Scan program = 17 , Program 1 = 2 , Program 2= 7 ,
Program 3 = 2
www.behaotomasyon.com
www.behaotomasyon.com

Table of Contents

Related product manuals