beautypg.com

Metrohm 846 Driver Toolbox User Manual

Page 42

background image

3.1 Programming interface definitions

38

Dosing Interface USB Toolbox, Annex

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

FUNCTION DU_Cock(IfNo,MsbNo,Port : LONG; Move : eCockMove; NotOver : LONG)

: eReturnState; STDCALL; EXTERNAL dllName;

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

FUNCTION ZeroAdjust(IfNo,MsbNo : LONG; RevRate : FLOAT) : eReturnState;

STDCALL; EXTERNAL dllName;

(* 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... ?] *)

(* LONG MsbNo Dosino at MSB [1... 4] *)

(* eDirection Direction Direction of the desired *)

(* piston movement. *)

(* return eReturnstate *)

FUNCTION Adjust(IfNo,MsbNo : LONG; Direction : eDirection) : eReturnState;

STDCALL; EXTERNAL dllName;

(* Move the piston to an absolute position. The full stroke of the piston is *)

(* subdivided in 10000 positions. *)

(* *)

(* parameter LONG IfNo Dosing Interface [1... ?] *)

(* LONG MsbNo Dosino at MSB [1... 4] *)

(* LONG Position Absolute piston position *)

(* [0... 10000] *)

(* FLOAT Rate Dosing rate *)

(* [0.01... 166 mL/min] *)

(* return eReturnstate *)

FUNCTION GoPos(IfNo,MsbNo,Position : LONG; Rate : FLOAT) : eReturnState;

STDCALL; EXTERNAL dllName;

(* Move piston to the mechanical end position. This function can be used to *)

(* remove any air bubbles from the cylinder. *)

(* *)

(* parameter LONG IfNo Dosing Interface [1... ?] *)

(* LONG MsbNo Dosino at MSB [1... 4] *)

(* FLOAT FwdRate Dosing rate *)

(* [0.01... 166 mL/min] *)

(* return eReturnstate *)

FUNCTION DU_ToEnd(IfNo,MsbNo : LONG; FwdRate : FLOAT) : eReturnState;