Creating Custom Software Interfaces
Galil provides programming tools so that users can develop their own custom software interfaces to a Galil
controller. For new applications, Galil recommends the GalilTools Communication Libraries.
HelloGalil – Quick Start to PC programming
For programmers developing Windows applications that communicate with a Galil controller, the HelloGalil library
of quick start projects immediately gets you communicating with the controller from the programming language of
your choice. In the "Hello World" tradition, each project contains the bare minimum code to demonstrate
communication to the controller and simply prints the controller's model and serial numbers to the screen Figure
4.1.
Figure 4.1: Sample program output
http://www.galilmc.com/support/hello_galil.html
Galil Communication Libraries
The Galil Communication Library (Galil class) provides methods for communication with a Galil motion controller
over Ethernet, RS-232 or PCI buses. It consists of a native C++ Library and a similar COM interface which extends
compatibility to Windows programming languages (e.g. VB, C#, etc).
A Galil object (usually referred to in sample code as "g") represents a single connection to a Galil controller.
For Ethernet controllers, which support more than one connection, multiple objects may be used to communicate
with the controller. An example of multiple objects is one Galil object containing a TCP handle to a DMC-42x0 for
commands and responses, and one Galil object containing a UDP handle for unsolicited messages from the
controller. If
is used to begin the automatic data record function, the library will open an additional
UDP handle to the controller (transparent to the user).
The library is conceptually divided into six categories:
1. Connecting and Disconnecting - functions to establish and discontinue communication with a controller.
2. Basic Communication - The most heavily used functions for command-and-response and unsolicited
messages.
3. Programs - Downloading and uploading embedded programs.
4. Arrays - Downloading and uploading array data.
5. Advanced - Lesser-used calls.
6. Data Record - Access to the data record in both synchronous and asynchronous modes.
Chapter 4 Software Tools and Communication ▫ 49
DMC-42x0 User Manual
Содержание DMC-42 0 Series
Страница 85: ...Chapter 6 Programming Motion 81 DMC 42x0 User Manual Figure 6 14 ECAM cycle with Z axis as master...
Страница 195: ...ICM 2900 PCB Layout Appendices 191 DMC 42x0 User Manual...
Страница 205: ...CB 50 100 Drawings Appendices 201 DMC 42x0 User Manual...
Страница 206: ...Appendices 202 DMC 42x0 User Manual...
Страница 207: ...Appendices 203 DMC 42x0 User Manual...
Страница 208: ...Appendices 204 DMC 42x0 User Manual...
Страница 209: ...Appendices 205 DMC 42x0 User Manual...
Страница 210: ...Appendices 206 DMC 42x0 User Manual...
Страница 211: ...Appendices 207 DMC 42x0 User Manual...
Страница 214: ...CB 50 80 Drawing Appendices 210 DMC 42x0 User Manual...
Страница 215: ...Appendices 211 DMC 42x0 User Manual...