5. Programming

5.1 T3 sample program

The following sample program configuration shows the case of one CD332 is used. In this example, it is assumed that XW000 is assigned to the CD332.

Main Program

c

User program

(Main program)

d

I/O Interrupt Program #1 (I/O#1)

e

Processing for IN0 interrupt

Processing for IN1 interrupt

Processing for IN2 interrupt

Processing for IN3 interrupt

Processing for IN4 interrupt

Processing for IN5 interrupt

Processing for IN6 interrupt

Processing for IN7 interrupt

f

g

22 Change Detect DC Input Module (CD332)

Page 26
Image 26
Toshiba CD332 user manual Programming, T3 sample program, Main Program, Interrupt Program #1 I/O#1