Chapter 5 Program Configuration and Operation Method
5
-
8
1) How to Prepare Interrupt Program
Generate the task in the project window of XG5000 as below and add the program to be performed by
each task. For further information, please refer to XG5000 user’s manual.
2) Task Type
Task type and function is as follows.
Type
Spec
Cyclic task (interval task)
Internal device task (single task)
Task number
32
32
Start condition
Cyclic (setting up to max.
4,294,967.295 sec. by 1ms unit)
Internal device execution
condition
Detection & execution
Cyclic execution per setting time
Retrieve the condition and
execute after completing Scan
Program
Detection delay time
Max. 0.2 ms delay
Delay as much as max. scan time
Execution priority
2 ~ 7 level setting
(2 level is highest in priority.)
Same as left
Task no.
Within 0~31 range without user
duplication)
With 64~95 range without user
duplication
3) Processing Method of Task Program
Here describes common processing method and notices for Task Program.
(1) Features of Task Program
y
Task Program is executed only when execution condition occurs without every scan repeat
processing. When preparing Task Program, please consider this point.
y
For example, if a timer and counter were used in cyclic task program of 10 second cycle, this timer
occurs the tolerance of max. 10 seconds and the counter and the timer and as the counter checks
the input status of counter per 10 seconds, the input changed within 10 seconds is not counted up.