beautypg.com

Metrohm 846 Driver Toolbox User Manual

Page 41

background image

3.1 Programming interface definitions

Dosing Interface USB Toolbox, Annex

37

(* Dosino is busy *)

DOS_STAT_BUSY,

(* Dosino is halted while filling *)

DOS_STAT_HOLD_FILL,

(* Dosino is halted in Exchange function *)

DOS_STAT_HOLD_EXCHANGE,

(* Dosino is halted in GoPos function *)

DOS_STAT_HOLD_POSITION,

(* Dosino is halted in ZeroAdjust function *)

DOS_STAT_HOLD_ZEROADJUST,

(* Dosino is halted in Adjust function *)

DOS_STAT_HOLD_ADJUST,

(* Dosino is halted in ToEnd function *)

DOS_STAT_HOLD_TOENDDOS,

(* Dosino is halted in MakeStep function *)

DOS_STAT_HOLD_DOS,

(* Dosino is halted in Prep function *)

DOS_STAT_HOLD_PREPAR,

(* Dosino is halted in Empty function *)

DOS_STAT_HOLD_EMPTY,

(* Dosino has timed out *)

DOS_STAT_TIMEOUT,

(* Dosino status is undefined *)

DOS_STAT_UNDEFINED);

eDirection = (

(* Forward, dosing (0 --> 10000 pulses) *)

DIR_fwd,

(* Reverse, filling (10000 --> 0 pulses) *)

DIR_rev);

eCockMove = (

(* Ascending order (Port 1 --> 4) *)

CK_MV_Asc,

(* Descending order (Port 4 --> 1) *)

CK_MV_Desc,

(* Automatic mode, shortest path *)

CK_MV_Auto,

(* Protected mode, cock will not move over specified port *)

CK_MV_NotOver);

(* 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 *)

FUNCTION Init846 : BOOL; STDCALL; EXTERNAL dllName;

(* 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 VAR Volume 0; 2; 5; 10; 20; 50 mL *)

(* Cylinder volume = 0 *)

(* means: no Dosing Unit mounted! *)

(* return eReturnstate *)

FUNCTION GetCylVolume(IfNo,MsbNo : LONG; VAR Volume : LONG)

: eReturnState; STDCALL; EXTERNAL dllName;