User guide
58
6000 Series Programmer's Guide
Visual C++™ Support
Visual C++ declarations for all DLL functions and subroutines are described below. Note that
some functions are not applicable to all DLLs, and that the “irqnum” variable is not part of the
syntax for the SendAT6400Block and RecvAT6400Block function when using WN956000.DLL.
TIP: Before you invoke Visual C++, copy the desired DLL file (WIN6400.DLL,
NT6400.DLL or WN956000.DLL) and your controller's _______.OPS (operating system) file
from your Motion Architect directory to the Visual C++ root directory.
SAMPLE APPLICATIONS: Within each DLL's subdirectory are source files for sample
applications that exploit the DLL's functions. Refer to page 62 for details.
DLL Functions
Refer to the Header (.H) file
The primary purpose of this section is to identify the sequence and purpose of the variables
used in each DLL function. The function declarations below are also provided in the respective
header file (WIN6400.H, WN956000.H, or NT6400.H). Refer also to the header file for the
structure of the fast status area.
NT6400.DLL ONLY →
DLL Function: SetNTParam
Description: Initializes Windows NT driver for one card only. Call this function before any other
communications with the 6000 product, including loading the operating system.
If you are using
more than one 6000 card in your computer, use the
SetNTMultiCardAddress
function.
Syntax: nt6400.dll .......... BOOL WINAPI SetNTParam(DWORD address, DWORD irqnum)
Variables: “address”.......... Board address of the 6000 controller card (must be evenly divisible by 8).
“irqnum”
...........
Set to zero (used internally by Motion Architect for interrupt support).
Return Value: Returns FALSE (“0”) if function successful. Otherwise, TRUE (non-zero value).
NT6400.DLL ONLY →
DLL Function: SetNTMultiCardAddress
Description: Initializes Windows NT driver. Call this function before any other communications with the 6000
product, including loading the operating system. If you are using more than one 6000 card in your
computer, call the SetNTMultiCardAddress function once for each card address.
Syntax: nt6400.dll .......... BOOL WINAPI SetNTMultiCardAddress(DWORD address)
Variables: “address”.......... Board address of the 6000 controller card (must be evenly divisible by 8).
Return Value: Returns FALSE (“0”) if function successful. Otherwise, TRUE (non-zero value).
WN956000.DLL ONLY →
DLL Function: SetDevice
Description: Initializes Windows 95 driver. Call this function before any other communications with the 6000
product, including loading the operating system.
Syntax: wn956000.dll .... BOOLEAN WINAPI SetDevice(long devnum, short address)
Variables: “devnum”.......... Device number assigned to the card. The first card addressed must be assigned
device number zero (0); the next cards must be assigned consecutive numbers
(i.e., 1,2,3, etc.).
“address”.......... Board address of the 6000 controller card (must be evenly divisible by 8).
Return Value: Returns FALSE (“0”) if function successful. Otherwise, TRUE (non-zero value).










