HEIDENHAIN IK 220 Benutzerhandbuch

Seite 89

Advertising
background image

Driver Software for WINDOWS

89

Calling the DLL functions from an application program

To be able to use the functions of the DLL they must be known
by the application program.

Microsoft Visual C++
If the application program is written with Visual C++, the
file ”\IK220Dll\Release\IK220DLL.LIB” is to be copied into the
library directory of Visual C++ (e.g.: C:\MSDEV\LIB). Moreover,
this library must be linked. This requires an entry
under ”Build/Settings/Link/Object/library modules.”
The header file ”\Include\DLLFunc.h” in which the function
prototypes are defined must be added to the project.
After this is done, the functions can be used as ”normal” C
functions.

Microsoft Visual C++
For Microsoft Visual Basic, the functions are defined in the
module ”\Include\DLLFunc.bas.” This file must be included in
the project.

Borland Delphi
The functions and types are defined in the
file ”\Include\DLLFunc.pas” to enable the DLL functions to be
used with Borland Delphi.

Overview of DLL functions

Function Short

reference

Determine installed
IK 220

BOOL

IK220Find

(ULONG*

pBuffer16)

Initialize IK 220

BOOL IK220Init

(USHORT Axis)

Read program versions

BOOL IK220Version

(USHORT Axis,

char*

pVersCard,

char*

pVersDrv,

char*

pVersDll)

Clear counter

BOOL IK220Reset

(USHORT Axis)

Start counter

BOOL IK220Start

(USHORT Axis)

Stop counter

BOOL IK220Stop

(USHORT Axis)

Delete frequency and
amplitude error

BOOL IK220ClearErr

(USHORT Axis)

Save counter value

BOOL IK220Latch

(USHORT Axis, USHORT Latch)

Save synchronous
counter value internally

BOOL IK220LatchInt

(USHORT Card)

Save synchronous
counter value externally

BOOL IK220LatchExt

(USHORT Card)

Advertising