MORECHEMISTRY.COM::MORE CHEMISTRY ON THE WEB    
Home Member Area Links Events Publications Promotions
 

LabVIEW drivers - Knauer Smartline Pump 100


Introduction

The Knauer Smartline Pump 100 can be controlled using a PC. The user's manual for these pumps provide the necessary information to setup the communication.
The presented LabVIEW driver incorporates all the commands provided by the user's manual.
The test program uses some of the commands and offers common functionality to operate a single pump.

Overview of the serial communication

To make the serial communication work open the com port use the following settings:

9600 baud
8 bit
1 stop-bit
no parity check

The following is a complete overview of the commands to set or read a specific parameter.

Each command must be followed by ENTER.

For setting any new parameter the command and the new value must be separated
by a colon or a blank, for instance PMAX10:300.

For reading any parameter add the questionmark to the command. Responses
consist of the command, a colon and the actual reponse.

ADJ10(?)	RD/WR	100 – 2000	1000	Adjust parameter for the 10 ml PH
ADJ50(?)	RD/WR	100 – 2000	1000	Adjust parameter for the 50 ml PH
CORR10(?)	RD/WR	0 – 300		0	Correction parameter for the 10 ml PH
CORR50(?)	RD/WR	0 – 300		0	Correction parameter for the 50 ml PH
FLOW(?)		RD/WR	0 – 50000	0	Set/read flow in µl/min
PRESSURE? *)	RD	0 – 650			Pressure readout in 0.1 MPa
PMIN10(?) *)	RD/WR	0 – 650		0	Minimal pressure for the 10 ml PH (in 0.1 MPa)
PMIN50(?) *)	RD/WR	0 – 150		0 	Minimal pressure for the 50 ml PH (in 0.1 MPa)
PMAX10(?) *)	RD/WR	0 – 650		400	Maximal pressure for the 10 ml PH (in 0.1 MPa)
PMAX50(?) *)	RD/WR	0 – 150		150	Maximal pressure for the 50 ml PH (in 0.1 MPa)
IMIN10(?)	RD/WR	0 – 100		0	Minimal motor current for the 10 ml PH
IMIN50(?)	RD/WR	0 – 100		0	Minimal motor current for the 50 ml PH
IMAX10(?)	RD/WR	0 – 100		50	Maximal motor current for the 10 ml PH
IMAX50(?)	RD/WR	0 – 100		70	Maximal motor current for the 50 ml PH
HEADTYPE(?)	RD/WR	10, 50		10	Set/read a current pump head type

STARTLEVEL(?)	RD/WR	0, 1		1	Sets logical level of the START-IN
						input to start the flow delivery
ERRIO(?)	RD/WR	0, 1	 	0	Set/read direction of the ERROR
						input/output as OUT (0) or IN (1)
STARTMODE(?)	RD/WR	0, 1		0	0 = The pump holds at power –on;
						1 = Pump starts running with a flow of
						the last FLOW: xxxx command
EXTCONTR	WR	0,1			1 = enable an external flow control
						(through analog input, 1V = 1 ml/min)
						0 = disable an external flow control
EXTFLOW?	RD	0 – 10000		External flow control voltage in mV
ANOUTCOEFF (?)	RD/WR	500 – 2000	1000	Slope coefficient of the analog output
ANOUTOFFSET (?)	RD/WR	-500 – 500	0	Offset of the analog output
ANINCOEFF (?)	RD/WR	500 – 2000	1000	Slope coefficient of the analog input
ANINOFFSET (?)	RD/WR	-100 – 100	0	Offset of the analog input
PADC?		RD	0 – 4095		Pressure sensor signal in ADC units
POFFSET(?)	RD/WR	-1000 – 1000	0	Offset of the pressure sensor
PCOEFF(?)	RD/WR	500 – 2000	1000	Slope coefficient of the pressure sensor
IMOTOR?		RD	0 – 100			Motor current in relative units
LOCAL		WR	-			Put the instrument in local mode
REMOTE		WR	-			Put the instrument in remote mode
CLS		WR	-			Clear error messages
ERRORS?		RD	-			Returns 5 last saved errors
ON		WR	-			Start flow
OFF		WR	-			Stop flow
PCORR		RD/WR	0,1		0	0 = work without a pressure signal
						1 = work with a pressure signal
IDENTIFY?	RD	MANUFACTURER		Get the instrument information
			MODEL_NR
			INSTR_ID
			SERNUM
			VERSION
			MODIFICATION
STATUS?		RD	Status (ON=1, OFF=0)	Get status of the instrument
			Flow in µl/min
			Pressure in 0.1 bar
			External start
			External flow control
			Max. pressure error	(all errors: 1 if an error condition is
			Min. pressure error	true, 0 if not)
			Max. motor current error
			Min. motor current error
			External error IN
GLP?		RD	GLP_TIME		Instrument’s working time in minutes


Error Code Description
128 *) Max. pressure
129 *) Min. pressure
130 Max. motor current
131 Min. motor current
132 External error

*) pump equiped with pressure transducer

This file includes the following files:

  • knauer 100.llb, containing all elements of the driver including support files
  • knauer tree.vi, a help file using all vis from the driver
  • knauer test.vi, a basic program to test the driver (or the pump)
    select and open the comport before issuing any command
  • knauer 100 commands.txt, an ASCII file with a complete overview of the commands (as shown above)
  • knauer globals.vi, a support file for the test program which holds a constant for the headtype on your pump

All the included vis have been made with LabVIEW 8.5.1.

Remarks

  •  the driver has been tested on a pump without pressure transducer

Bart Boshuizen, 2011/07/07

© copyright 2000-2014, morechemistry.com
design by Bb.