Galil DMC-1800, DMC-1700 user manual User Interrupts UI command, Servicing Interrupts

Models: DMC-1800 DMC-1700

1 253
Download 253 pages 18.39 Kb
Page 74
Image 74
User Interrupts (UI command)

Bit Number

Condition

 

 

0

X motion complete

1

Y motion complete

2

Z motion complete

3

W motion complete

4

E motion complete

5

F motion complete

6

G motion complete

7

H motion complete

8

All axes motion complete

9

Excess position error*

10

Limit switch

11

Watchdog timer

12

Reserved

13

Application program stopped

14

Command done †

15

Inputs* (uses n for mask)

†Not available when using new version 7 drivers.

The argument “n” enables interrupts for the first 8 general inputs. To enable interrupts for the desired inputs, set bit 15 of the “m” argument, then set the desired inputs using the 8-bit mask for the “n” argument. For example, to enable interrupt on inputs 1-4, set EI32768,15. Note that the input interrupts must be reset for all inputs after any input has caused an interrupt.

Bit number

Input

 

 

0

Input 1

1

Input 2

2

Input 3

3

Input 4

4

Input 5

5

Input 6

6

Input 7

7

Input 8

User Interrupts (UI command)

The DMC-1700/1800 also provides 16 User Interrupts which can be sent by executing the command UIn to the DMC- 1700/1800, where n is an integer between 0 and 15. UI commands are useful in DMC programs to allow the application program communicate with a host application.

Servicing Interrupts

When an interrupt occurs, the motion controller provides a status byte to indicate which condition has occurred.

66 • Chapter 4 - Software Tools and Communications

DMC-1700/1800

Page 74
Image 74
Galil DMC-1800, DMC-1700 user manual User Interrupts UI command, Servicing Interrupts