Chapter 6: the maestro api, 1 mac_initialize – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 108

Maestro
Software Manual
MAN-MASSW (Ver. Q)
6-1
Chapter 6: The Maestro API
Abbreviations
MAS/MAC – Multi Axes Supervisor/Multi Axes Controller synonyms for the Maestro
Interfaces:
API – (Application Program Interface) Set of functions that enables a user’s program to
have communication and other requests with the Maestro and the connected subset
drives.
PVT – Position Velocity Time, motion method commonly used by the Maestro to perform
a movement.
Multi-axes supervisor API Library Operation System Requirements:
• Windows NT/2000/XP: Requires Windows NT 4.0 or later;
• Windows 95/98/Me: Requires Windows 98, Me (or Windows 95 with
DCOM).
When using the Multi-Axes Supervisor API Library in a Visual C++ project with
MFC, the following linker options may need to be added:
• For MS Visual Studio 6:
debug version -
/nodefaultlib:"libcd.lib"
release version -
/nodefaultlib:"libc.lib"
• For MS Visual Studio 7:
debug version -
/nodefaultlib:"libcd.lib" /FORCE:MULTIPLE
release version -
/nodefaultlib:"libc.lib" /FORCE:MULTIPLE
6.1
MAC_Initialize
This function enables the user to initialize Multi-axes supervisor API Library
Syntax:
int MAC_Initialize
( DWORD dwComInitialize, BOOL bEventInitialize );
Input Parameters:
DWORD dwComInitialize
Initialize COM Mechanism Parameter
determines the concurrency model used for incoming calls
to objects created by this thread. This parameter can be one
of the following:
COM_INIT_DISABLE - disable inner COM initialization,
COM_INIT_SINGLETHREADED - single-threaded model,
COM_INIT_MULTITHREADED - multi-threaded model
BOOL bEventInitialize
Initialize MAS Event Mechanism