Metrohm 846 Driver Toolbox User Manual
Page 35
3.1 Programming interface definitions
Dosing Interface USB Toolbox, Annex
31
CK_MV_Desc = 1,
// Automatic mode, shortest path
CK_MV_Auto = 2,
// Protected mode, cock will not move over specified port
CK_MV_NotOver = 3
};
#ifdef __cplusplus
// C-Declarations for C++
extern "C" {
#endif
// Initializes all Metrohm 846 Dosing Interfaces found in the USB chain.
// All Dosino drives are recognized and the Dosing Units are reset.
// Running processes are stopped.
//
// return bool Function returns true if
// successful
DllDirection bool __stdcall Init846();
// Returns the cylinder volume of the Dosing Unit. This function can be used for
// the detection of a mounted Dosing Unit.
//
// parameter long IfNo Dosing Interface [1... ?]
// long MsbNo Dosino at MSB [1... 4]
// long& Volume 0; 2; 5; 10; 20; 50 mL
// Cylinder volume = 0
// means: no Dosing Unit mounted!
// return eReturnstate
DllDirection eReturnstate __stdcall GetCylVolume(long IfNo, long MsbNo,
long &Volume);
// Turns the valve disk to the selected port. The turning direction is chosen
// according to "Move". If "Move" is set to CK_MV_NotOver, the Port specified
// in "NotOver" will not be crossed. Otherwise this parameter is ignored.
//
// parameter long IfNo Dosing Interface [1... ?]
// long MsbNo Dosino at MSB [1... 4]
// long Port Target Dosino port [1... 4]
// eCockMove Move Turning direction of the
// valve disk
// long NotOver protected Dosino port [1... 4]
// return eReturnstate
DllDirection eReturnstate __stdcall DU_Cock(long IfNo, long MsbNo, long Port,
eCockMove Move, long NotOver);
// Moves the piston of the Dosino to zero position and initializes the drive.
//
// parameter long IfNo Dosing Interface [1... ?]
// long MsbNo Dosino at MSB [1... 4]
// float RevRate Filling rate of piston
// [0.01...166mL/min]
// return eReturnstate
DllDirection eReturnstate __stdcall ZeroAdjust(long IfNo, long MsbNo,
float RevRate);
// Eliminate slack of piston coupling. This function can be used, when the
// direction of the piston movement is about to be changed.
//
// parameter long IfNo Dosing Interface [1... ?]