Chapter 5 Programming Concepts
XBC E-Type Main Unit
5-3
Ver. 1
5.1.3 Interrupt
Example of interrupt setting is as shown below.
Interrupt source
Interrupt name
priority
Task No.
Program
Initializing
Interrupt 0_
-
-
-
Cycle time 1
Interrupt 1_cycle time
2
0
Cycle time 1
External
Interrupt 2_external
2
8
External
Internal device
Interrupt 3_internal
3
14
Internal
Cycle time 2
Interrupt 4_cycle time
3
1
Cycle time 2
Remark
•
When several tasks to be executed are waiting, scan starts from the highest Task Program in
priority. When the same priority tasks are waiting, scan starts in consecutive order.
•
While interrupt is scanning, if the highest priority interrupt occurs, it is scanned first.
•
When power is On, All interrupts are in the state ‘Enable’. In case you don’t use it, disable the
interrupts by using DI instruction. If you want to use it again, enable by using EI instruction.
•
Internal device interrupt is executed after END instruction.
Initializing
(Before INIT_DONE instruction)
Cycle time 1 scan
Interrupt 1_Cycle time
occur
Cycle time 1/
external occur
simultaneously
Cycle time 1 scan
External I/O scan
Internal device
Interrupt occur
Internal device interrupt
scan
Cycle time 1 scan
Timed-driven
1 scan
Cycle time 2
occur
Cycle time 2 scan
END
Scan program
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...