6F3B0253
6. Programming Information
6.6.2Sub-program #1
If the
Therefore, the
The figure below shows the first scan operation.
RUN mode |
| 1st scan | ||
transition |
| |||
|
|
|
|
|
| I/O | Timer | Sub#1 | Main program |
|
|
|
|
|
2nd scan
Mode I/O Timer
Main program
Time
The end of the
6.6.3Timer interrupt program
The timer interrupt is the highest priority task. It is executed cyclically with a user specified interval, with suspending other operation.
The interrupt interval is set in the system information. (5 to 1000 ms, 5 ms units)
1 scan | 1 scan |
Scan
Timer interrupt
Timer interrupt
interval
| 1 scan |
| 1 scan | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Timer interrupt
interval
Time
The end of the timer interrupt is recognized by the IRET instruction.
Basic Hardware and Function 95