DMC-1400 Series Command Reference EI ● 77
EI FUNCTION: Enable Interrupts
DESCRIPTION:
The EI command enables an ISA, PC/104 or PCI bus interrupt on conditions such as motion
complete or excess positional error. The conditions are selected by the parameter m
where m is the bit mask for the selected conditions as shown below. Prior to using the EI
command, one IRQ line must be jumpered on the DMC-141X. An interrupt service
routine must also be incorporated in your host program. See Chapter 4 in the product
manual for details.
ARGUMENTS: EI n where
n is interrupt condition for bits set. n = ΣBit number (2m) Condition
Bit Number (m) Condition
15 Reserved
14 Reserved
13 Application Program stopped
12 Reserved
11 Watchdog Timer
10 Limit switch
9 Excess Position error*
8 Motion complete
7 reserved
6 Input 7*
5 Input 6*
4 Input 5*
3 Input 4*
2 Input 3*
1 Input 2*
0 Input 1*
The * conditions must be re-enabled after each occurrence.
USAGE:
While Moving Yes Default Value 0
In a Program Yes Default Format ---
Command Line Yes
Can be Interrogated No
Used as an Operand No
Controller Usage DMC-1410/1411/1417
RELATED COMMANDS:
UI User interrupt
EXAMPLES:
1. Specify interrupts for motion complete and limit switch.
Enable bits 8 and 10. n = 210 + 28 = 1024 + 256 = 1280 EI 1280
2. Specify interrupts on Inputs 2 and 4.
Enable bits 1 and 3. n = 21 + 23 = 2 + 8 = 10 EI 10