38 • Chapter 4 Communication DMC-1000
The DMC-1000 also provides 16 User Interrupts which can be sent by sending the command UI n to
the DMC-1000, where n is an integer between 0 and 15. The UI command does not require the EI
command.
Servicing Interrupts
Once an interrupt occurs, the host computer can read information about the interrupt by first writing
the data 6 to the control register at address N + 1. Then the host reads the control register data. The
returned data has the following meaning:
Hex Data Condition
00 No interrupt
D9 Watchdog timer activated
DA Command done
DB Application program done
F0 through FF User interrupt
E1 through E8 Input interrupt
C0 Limit switch occurred
C8 Excess position error
D8 All axis motion complete
D7 E axis motion complete
D6 F axis motion complete
D5 G axis motion complete
D4 H axis motion complete
D3 W axis motion complete
D2 Z axis motion complete
D1 Y axis motion complete
D0 X axis motion complete
Example - Interrupts
1) Interrupt on Y motion complete on IRQ5.
Jumper IRQ5 on DMC-1000
Install interrupt service routine in host program
Write data 2, then 4 to address N + 1
Enable bit 1 on EI command, m = 2
1
= 2; EI 2
PR,5000
BGY
Now, when the motion is complete, IRQ5 will go high, triggering the interrupt service routine. Write
a 6 to address N + 1. Then read N + 1 to receive the data D1 hex.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com