Find Docs

Galil Motion Control - 2004catalog (Page 94)

Wodocs >> Electronics : Motion Control >> Galil Motion Control 2004catalog Page 94
Galil Motion Control - 2004catalog
Windows API Tool Kit
Galil's Windows API Tool Kit includes DMCWIN32 API software that
provides C libraries (Linux, DOS and QNX versions are also available),
sample programs, utilities, a complete terminal program, and full
documentation.With this kit, all Galil motion controllers can be pro-
grammed using standard C/C++ compilers.The kit is also compati-
ble with the Galil ActiveX Tool Kit.
Partial DLL API list:
The following represents a partial list from over 60 API
functions.
DMCOpen Open communications
DMCClose Close communications
DMCCommand Send a command
DMCBinaryCommand Send binary command
DMCDownloadFile
Download a file from hard disk
DMCArrayUpload Upload an array
Sending Commands Using the Class Library
Most of the API functions are available in the class library. An
object of type CDMCWin is declared which allows access to the
class functions.When the class constructor is called the commu-
nication channel is opened. To send commands use the .com-
mand function. Unlike the routine calls using DMCCOM.H the
handle does not need to be passed to all subsequent class calls.
Make sure to call the .close routine before ending the program
so Windows can release the handle.
Example C++ Program
This example tells the controller to start jogging the Y axis at 10000
counts per second:
CDMCWin controller(1,hWnd,0);
Char szResponse[256];
ULONG ulResponseLen=0;
Controller.Command("JG,1000;BG",szResponse,ulResponseLen)
Example C Program tells the controller
to move the X-axis motor 1000 counts.
#include <windows.h>
#include <Dmccom.h>
long rc;
HANDLEDMC hDmc;
char szBuffer [64];
int main(void)
{
rc = DMCOpen(1,0,&hDmc);
rc = DMCCommand(hDmc,"PR1000;BGX;",szBuffer,
sizeof(szBuffer));
rc = DMCClose(hDmc);
return 0;
}
DMCWIN32 API
Programming Tools
SOFTW
ARE
92
www.galilmc.com / Galil Motion Control, Inc.

<< Previous       1 .. 87 88 89 90 91 92 93 94 95 96 97 98 99       Next >>



Other Documents:
ampmotororder, blm n 23, catcps, catmotors, ctool, ioc 7007, pcicompar, programming, softorder, system, utilities, wsdk, activelife, camalot, mojavaton, smmov, Filter Equiv, note 1410, note 1411, note 1412, eseries brochure, ethernet dmc 21x 2, ethernet emerge, ethernet flight, ethernet horizons, pr 03 30 00, pr 10 1 98, pr 10 20 99, pr 11 30 00, pr 1 13 00, pr 2 18 98, pr 3 11 98, pr 3 2 98, pr 6 15 99, pr 7 1 99, pr 8 29 00, pr 9 13 99, pr 9 9 98, db 28040 qsi, bestvalue, jacob video, icmworksheet, note 1220, note 1222, note 2311, note 2312, note 2319, note 2321, note 2326, note 3311a,


WODocs | |
All rights reserved. wodocs.com© 2009
WODocs


New Docs

Documents Category:
Arts (Design, Movies, Music, Radio, Television)
Automotive (Cars, Marine, Motorcycle, ATV, Snowmobiles)
Business (Biotechnology and Pharmaceuticals, Chemicals, Construction and Maintenance, Materials, Real Estate, Services)
Electronics (Computers, Motion Control, Power Supply)
Games (Board, Family, Party, Card, Construction, RC Toys)
Health (Animalm, Beauty, Healthcare, Medicine, Pharmacy, Surgery, Weight Loss)
Home (Accessories, Cooking, Decor and Design, Electrical, Family, Pets)
News (Newspapers, Sports, Television)
Recreation (Collecting, Hiking, Scouting, Survival, Travel)
Reference (Education, Libraries and Archives, Museums)
Science (Agriculture, Astronomy, Biology, Chemistry)
Shopping (Antiques and Collectibles, Clothing, Flowers, Food, Home and Garden)
Sports (Bicycle, Snowboard, Skiing, Other)