Special i/o functions – Toshiba 6F3B0253 User Manual
Page 271

6F3B0253
Basic Hardware and Function
269
8. Special I/O Functions
Sample program
Main program
(H3045)
I/O interrupt program #3
Interrupt program A
I/O interrupt program #4
Interrupt program B
In this example, 12357 (H3045) is set in SW16. As a result, the interrupt input function
(2 points, rising for both) is selected.
When X002 is changed from OFF to ON, the interrupt program A is executed. When
X003 is changed from OFF to ON, the interrupt program B is executed.
Even if the Direct I/O instruction is used in the interrupt program, the
corresponding input state (X002 or X003) cannot be confirmed. Because
the interrupt is generated before internal updating of the input states.
NOTE