Chapter 5. Program Configuration and Operation Method
5-7
5.2.3 Interrupt
For your understanding of Interrupt function, here describes program setting method of XG5000 which is an XGB
programming S/W. Example of interrupt setting is as shown bellows.
• Interrupt setting
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 16 Internal
Cycle time 2 Interrupt 4_cycle time 3 1 Cycle time 2
Remark
• In case that several tasks to be executed are waiting, execute from the highest Task Program in
priority. When the same priority tasks are waiting, execute from the order occurred.
• While interrupt executing, if the highest interrupt is occurred, the highest interrupt is executed earliest of
all.
• When power On, All interrupts are in the state ‘Enable’.
• Internal device interrupt is executed after END instruction.
Initializing
(Before INIT_DONE instruction)
Cycle time 1 execution
Interrupt 1_Cycle time
occur
Cycle time 1/
external occur
simultaneously
Cycle time 1 execution
External I/O execution
Internal device
Interrupt occur
Internal device interrupt
execution
Cycle time 1
execution
Cycle time 2
occur
Cycle time 2 execution
END