Download "user manual"

Transcript
Chapter 5 Program Structure and Operation Modes
1) Creating an interrupt program
Create a task in the project window of XG5000 as follows and add programs to be executed by each task. For further information,
please refer to the user’s manual of XG5000.
2) Task Types
The below table summarizes the types and functions of tasks.
Type
Spec.
Fixed cycle task
(interval task)
Internal contact task
(single task)
32
32
Number
Operation condition
Fixed cycle(settable up to 4,294,967.295
seconds at the unit of 1ms)
Detection/execution
Cyclically execute at the pre-defined interval.
Detection delay time
Delayed as long as 0.2ms to the max.
Execution priority
Task number
Setting 2 ~ 7 levels
(level 2 is the highest priority)
Assigning it between 0~31 so that it is not duplicate
Conditions of internal device designation
Execute by conditional search after completing
scan program
Delayed as long as the max. scan time.
Same as the left
Assigning it between 64~95 so that it is not duplicated
3) Processing method of task program
It describes the common processing method and cautions of task program
(1) Features of task program
y Task program does not reiteratively process like a scan program and instead, it executes only when the execution conditions occur.
Make sure to remember this when creating a task program.
y For instance, if a task program with 10 seconds of fixed cycle is used with a timer and counter, the timer may have an error of 10
seconds maximum while the counter checks every 10 seconds, any counter input changed within 10 seconds is not counted.
5-8