Galil DMC-1700 DOS, Linux, and QNX tools, Controller Event Interrupts and User Interrupts

Models: DMC-1800 DMC-1700

1 253
Download 253 pages 18.39 Kb
Page 73
Image 73
DOS, Linux, and QNX tools

DOS, Linux, and QNX tools

Galil offers unsupported code examples that demonstrate communications to the controller using the following operating systems.

DOS

DOS based utilities & Programming Libraries for Galil controllers, which includes a terminal, utilities to upload and download programs, and source code for BASIC and C programs. Download DMCDOS at http://www.galilmc.com/support/download.html#dos.

Linux

Galil has developed code examples for the Linux operating system. The installation includes sample drivers to establish communication with Galil PCI and ISA controllers. The current version of the software has been tested under Redhat 6.X O.S. All source codes for the drivers and other utilities developed for Linux are available to customers upon request. Linux drivers are available for ISA and PCI cards under Kernel 2.2. Drivers are also available for the PCI card only for Kernel 2.4.

For more information on downloading and installing the Linux drivers for Galil controllers, download the Linux manual at: http://www.galilmc.com/support/manuals/lnxmanual.pdf.

QNX

Galil offers sample drivers for ISA and PCI cards for the QNX 4.24 operating system. We also offer drivers and utilities for QNX 6.2 for PCI only. Download at http://www.galilmc.com/support/download.html#linux.

Controller Event Interrupts and User Interrupts

The DMC-1700/1800 provides a hardware interrupt line that will, when enabled, interrupt the PC. This allows the controller to notify the host application of particular events occurring on the controller. Interrupts free the host from having to poll for the occurrence of certain events such as motion complete or excess position error.

The DMC-1700/1800 uses only one of the PC’s interrupts; however, it is possible to interrupt on multiple conditions. For this reason, the controller provides a status byte register that contains a byte designating each condition.

The DMC-1700/1800 provides an interrupt buffer that is 16 deep. This allows for multiple interrupt conditions to be stored in sequence of occurrence without loss of data.

The DMC-1700/1800 provides two command forms of interrupt functionality, EI and UI. Specific interrupt conditions can be enabled using the EI command, or explicit user defined interrupts can be sent using the UI command.

Enabling Event Interrupts (EI command)

To enable certain conditions, use the command EIm,n. Where the first field “m” represents a 16-bit value of conditions described in the table below. For example, to enable interrupts on X and Y motion complete and position error, set EI515 (i.e. 515=20+21+29). Once the EI command is enabled for a specific condition, an interrupt will occur for every instance of that condition, except for the items marked with an asterisk (*), they must be re-enabled after every occurrence.

DMC-1700/1800

Chapter 4 - Software Tools and Communications • 65

Page 73
Image 73
Galil DMC-1700, DMC-1800 user manual DOS, Linux, and QNX tools, Controller Event Interrupts and User Interrupts