Basic Hardware and Function 281
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 f rom OFF t o O N, t he interrupt pr ogram A is executed. When
X003 is changed from O FF to ON, t he int er r upt program B is executed.
NOTE Even if the Direct I/O instruction is used in the interrupt program, the
corresponding input st ate (X002 or X003) cannot be confirm ed. Because the
interrupt is generated before int ernal updating of the input states.
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net