MORECHEMISTRY.COM::MORE CHEMISTRY ON THE WEB |
LabVIEW drivers - Gynkotek M480 HPLC pump
[LabVIEW vi collection]
[LabVIEW links]
[LabVIEW bookstore]
[programming topics] [drivers] [device simulators] [utilities] [projects] [events] [related topics] Gynkotek M480 HPLC pumpThe information provided by Gynkosoft (a GW-BASIC program) is a good starting point for creating a vi to control the Gynkotek M480 HPLC pump. The following text describes the required RS232 cable and transferprotocol.
Finding the right cableFor the connection between a PC and this HPLC pump a null-modem cable is required. BREAK-OUT-BOX SWITCH PIN TD 8 2 RD 7 3 TC 6 15 RC 5 17 RTS 4 4 CTS 3 5 DSR 2 6 DTR 1 20 GND 7 ALL SWITCHES OFF: NO CONNECTION LEFT OFF RIGHT ON: LINES CROSSED LEFT ON RIGHT OFF: LINES STRAIGHT All lines can be straight lines. Crossing the DTR line is allowed.
CABLE-CHECKER 9 PINS D-SUB SHIELD 6 1 7,8 2 3 3 2 4 6 5 5 6 4 7,8 1 8,7 1 9 - Line 4 may be connected to line 6.
Establishing the right protocolRS232 setting GYNKOTEK M480
Commands, such as listed below, which can be placed between "", are allways followed by a carriage return (ASCII code #OD, r in LabVIEW) and a newline (ASCII code #0A, n in LabVIEW). After sending a command wait at least 250 ms before reading the response from the Gynkotek pump. The response allways starts with the command itself followed by a carriage return and sometimes by one or more values. Here is a list of known commands: * open connection Hallo wait 750 ms before reading the response on the "Hallo" (not just 'H") command. the response contains the type of your Gynkotek pump. it is good practice to first invoke the "E" command, in order to close and clear the connection. * set flow to 500 µl F500 * set 'B' fraction of flow to 33% B33 the A fraction (%) will change to 100 - 33 - C fraction * set 'C' fraction of flow to 33% C33 the A fraction (%) will change to 100 - B fraction - 33 * set upper pressure limit to 100 (bar) >100 * set lower pressure limit to 10 (bar) <10 * request system information S wait 1000 ms before reading the response from the Gynkotek pump. the response is quite lengthy and may look like this: Sr1300rn0000rn0200rn;001rn1900rn1900rn0500rn0000rn?>00rn90?0rnn 1 2 3 4 5 6 7 8 9 10 11 1 original command 2 version 3 ? 4 ? 5 total flow 6 B fraction 7 C fraction 8 pressure 9 ? 10 ? 11 ? the response consists of some semi-hexadecimal values. for the analysis of the response use the following list to convert semi-hexadecimal to hexadecimal: character hexadecimal decimal in response value value : A 10 ; B 11 < C 12 = D 13 > E 14 ? F 15 this can be applied to the above response, e.g.: total flow [5] ;001 reads as 01BO = 0*4096+ 1*256+11*16+ 0*1 = 432 (µl) B fraction [6] 1900 reads as 0019 = 0*4096+ 0*256+ 1*16+ 9*1 = 25 (%) pressure [8] 0500 reads as 0005 = 0*4096+ 0*256+ 0*16+ 5*1 = 5 (bar) note that in each word type value the first and second byte swap places. * close connection E don't forget to read the response even if this command closes the connection. all other (single) letters of the alphabet have no command function. Downloadsdemonstration vi Remark
Bart Boshuizen, 2004/06/10
|
|