Metrohm 846 Driver Toolbox User Manual
Page 48

3.1 Programming interface definitions
44
Dosing Interface USB Toolbox, Annex
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
End Enum
Public Enum eDirection
' Forward, dosing (0 --> 10000 pulses)
DIR_fwd
' Reverse, filling (10000 --> 0 pulses)
DIR_rev
End Enum
Public Enum 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
End Enum
' 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 Boolean Function returns true if
' successful
Declare Function Init846 Lib "846_Dosing_Interface.dll" () As Boolean
' 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 ByRef Volume 0; 2; 5; 10; 20; 50 mL
' Cylinder volume = 0
' means: no Dosing Unit mounted!
' return eReturnstate
Declare Function GetCylVolume Lib "846_Dosing_Interface.dll" _
(ByVal IfNo As Long, ByVal MsbNo As Long, ByRef Volume As Long) _
As eReturnState
' 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.