Kloenh 8 - Channel - R5 - Pump-Users-Manual
Kloenh 8 - Channel - R5 - Pump-Users-Manual
Kloenh 8 - Channel - R5 - Pump-Users-Manual
for the
V6 8-CHANNEL
SYRINGE DISPENSER MODULE
Kloehn Ltd.
10000 Banburry Cross Drive
Las Vegas, NV 89144
U.S.A.
1.0 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 OPTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Supporting Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.1 KSerial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.2 Kcom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.3 Kloehn Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.4 WinPump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.0 CARD EDGE INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 INPUTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.1 Power Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.1.1 Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.1.2 Low Voltage Warning . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.1.3 Power Supply Capacity . . . . . . . . . . . . . . . . . . . . . . 5
2.1.1.4 Power Supply Selection . . . . . . . . . . . . . . . . . . . . . 7
2.1.1.5 Multiple-Unit Power Distribution . . . . . . . . . . . . . . . 7
2.1.2 Address Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.3 Digital Voltmeter Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1.4 Reset Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1.5 User Digital Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2 OUTPUTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.1 Digital Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.2 Error Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.3 5Vdc Power Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 SERIAL I/O EXPANSION (IOX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4 COMMUNICATIONS I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.1 RS485 Communications I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.2 RS232 Communications I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.5 REAR PANEL SWITCHES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5.1 Com Setup Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5.2 Address Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.6 CONNECTOR KEY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.0 GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.1 INSTALLING A SOLENOID VALVE . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2 INSTALLING a SYRINGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.3 CONNECTING POWER and COMMUNICATIONS . . . . . . . . . . . . . . . 17
3.3.1 With the Starter Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3.1.1 Card Edge Adapter Board . . . . . . . . . . . . . . . . . . . 17
3.3.1.2 Communications Cable . . . . . . . . . . . . . . . . . . . . . 17
3.3.1.3 Power Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3.2 Without the Starter Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4 SETTING the SWITCHES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.4.1 Com Setup Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.4.2 Address Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.5 SETTING UP COMMUNICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.5.1 Setting up HyperTerminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.5.2 Checking the Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.6 SENDING COMMANDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.6.1 General Command Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.0 COMMUNICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.1 INDIVIDUAL DEVICE ADDRESSING . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.2 MULTIPLE DEVICE ADDRESSING . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.2.1 Dual Device Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.2.2 Quad Device Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.2.3 Global Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.0 POWER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
9.1 POWER SUPPLY SELECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
9.1.1 Capacity Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
9.1.2 Type Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
9.2 SYSTEM WIRING PRACTICES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
9.3 LOW VOLTAGE CONDITION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
9.4 POWER CONSERVATION FOR BATTERY APPLICATIONS . . . . . . . 90
11.0 SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
11.1 ENVIRONMENTAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
11.2 PHYSICAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
11.3 POWER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
11.4 SYRINGE AXIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
11.4.1 Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
11.4.2 Accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
11.4.3 Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
11.4.4 Syringe Thrust and Pressure . . . . . . . . . . . . . . . . . . . . . . 96
11.5 VALVE AXIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
11.6 COMMUNICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
11.7 I/O INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
11.7.1 Digital Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
11.7.2 Digital Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
11.7.3 Digital Voltmeter Input . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
11.7.4 Serial I/O Expansion Port . . . . . . . . . . . . . . . . . . . . . . . . 99
11.8 USER PROGRAM MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
LIST OF FIGURES
Command strings, or programs, can be executed from RAM or may be stored into
and executed from the non-volatile memory (NVM). Up to 10 programs may be
stored in the standard NVM. An expanded NVM increases this to 99 programs.
A program in the NVM can be set to self-start when power is first applied to the
pump and immediately after a Reset input. Program retention in the NVM is
typically greater than 15 years without batteries. Program looping and if-then
program flow control is supported.
Three external logic inputs and three outputs permit interfacing to a variety of other
devices. One input can be used to halt a dispense in progress. A built-in digital
voltmeter (DVM) is included. For applications which require more I/O, an I/O
expander card is available to provide 16 more inputs and 16 more outputs.
Program test-and-jump instructions allow the pump to respond to external
conditions as well as internal program conditions. External inputs can be used to
set programmed operating parameters. The I/O can synchronize two pumps for
continuous flow applications. Real-time, remotely-controlled and monitored I/O is
supported simultaneously with other pump operations.
The V6 interface is located on a single card edge connector at the rear of the
pump., and is compatible with the V6 and V3 pumps. This permits simple wiring
connections and the use of modular, plug-in mounting.
1.2 OPTIONS
The V6 pumps can be ordered in 48,000 or 24,000 step and with or without
electronic controllers and motor drivers. Versions without controllers and motor
drivers include an interface board with the electromechanical interfaces, signal
conditioning, and a convenient card edge connector.
A starter kit is also available from Kloehn Company. The kit includes cables, power
supply, manuals, and software.
1.3.1 KSerial
KSerial is a command-driven program, operating at the command line prompt, used
to communicate between Kloehn products and a PC. KSerial handles the
communications overhead for both the DT and OEM protocols while providing error
checking and response interpretations. The program has numerous options to set
protocol, format and baud rate. KSerial runs in a “DOS window” or “Command
prompt window” in Windows© 98, ME, 2000 or XP.
1.3.2 Kcom
• You need to write programs that are lengthy, parameterized, or frequently modified
such as an assay method.
• You need computer automation of pumps and valves without investing the time to
learn programming or write software.
A script can be a substitute for software or can be used by software as a
subroutine. Scripts can be used as subroutines that handle real-time I/O signaling
and triggering capabilities and automation details. Script commands are expressed
in terms of the user's physical units, variables, and arithmetic expressions.
1.3.4 WinPump
WinPump is a first-generation program for creating and debugging program strings
which execute in a device. WinPump is designed to run under DOS© or
Windows© 3.1. It is now obsolete.
All electrical interfaces are located on the pins of the rear card-edge, P1, shown in
Figure 1-1. The mating connector is a dual-row, 18 pins-per-row, card-edge
connector on 0.156 inch centers. A connector can be obtained from Digi-Key
(800-344-4539, or (www.digikey.com ) as part number EDC305360-ND. The P1
pinout is shown in Figure 2-1.
2.1 INPUTS
When the pump supply voltage drops below an internal reference minimum (20V),
a "Low Voltage" error message is generated. This message is generated only once
for each drop in voltage. Continued low voltage is not reported in an error message;
the voltage should be monitored, if necessary, by repeated queries of the supply
voltage. Another low voltage error message will be generated only if the voltage
should rise above the reference minimum and then drop below it again. If
continuous low voltage error messages occur, the most likely causes are low-
frequency noise or ripple on the power supply.
While the voltage remains below the minimum, valve and syringe moves are
inhibited. However, unless the supply voltage drops below about 8 Vdc, the internal
control electronics and memory are not affected and all other instructions, such as
I/O operations and queries, will still operate normally after the low voltage error
message has been reported or cleared.
Some power supplies will turn on gradually. If the rise time of the supply is slow
enough, the internal computer may report a "Low Voltage" error when the pump is
initially queried. This will not cause any operational problems after the message
has been reported or cleared.
syringe and valve moves, with a derating for reliability. During valve and syringe
moves, the ac current is about 100 mA rms around the average DC current, with a
peak surge current spike of about 2 milliseconds duration at the beginning of the
move.
For multiple pumps on one supply, the overall system operation should be
considered. If there are N pumps, of which only M units will be making a syringe or
valve move at the same time, then the power capacity of the supply should be at
least 40M + 11(N-M) watts. If the syringes do not have to hold position against
a back pressure, then the syringe motors can be turned off between moves,
reducing the idle power per pump from 9 watts to 2 watts. There is no need to have
the valve motor turned on when a valve move is not in progress. The pump
automatically turns on the valve motor for moves and then turns it off when not
moving.
There are four classes of power supply: unregulated DC, linear regulator types,
switching regulator types, and batteries. Each has different selection
considerations.
The unregulated supply is the cheapest and simplest. Due to its unregulated
nature, it is not recommended.
The linear regulator supply usually has a protective current limiting. This limit value
must be set to at least 2.5 A to allow for the start-up in-rush current.
A switching power supply is the preferred choice. It offers higher efficiency, lower
heat generation, and a well-filtered output. Note that some switching power
supplies have a minimum load current requirement. Since the pump can idle as low
as 70 milliamps, the supply should be rated for a minimum load current equal to the
minimum total system idle current. A ballast resistor may be added across the
supply output to guarantee the minimum load requirement of the supply.
Battery operation from 24 V battery systems is feasible. The wide operating range
makes this possible. In most cases, a standby battery voltage of 28 Vdc is seen in
automotive and aircraft systems. This is acceptable for normal operation. Mobile
systems should provide overvoltage clamping for transients exceeding 34 Vdc.
In a system with multiple syringe drive modules, the power distribution wiring can
affect the system reliability. The best system wiring practice is to connect each
drive module with an individual pair of power leads from the power supply to that
individual module. This is called a "star" connection. The power leads for each
module should be twisted together along their length to reduce radiated fields.
External filter capacitors are not required, as internal filters are included.
The address inputs have built-in pull up resistors and use positive logic. The default
Address input level is logic “1". A logic “0" is made by grounding an Address pin.
The address is set as a 4-bit binary number by shorting those pins to ground which
should have a zero value. The address weighting on the pins is as follows:
The address value is the sum of the pin weights which are not connected to
ground. See Table 2-1 for the pin connections corresponding to the equivalent
address switch settings.
To wire an address onto the card edge connector, convert the address “1" through
P/N 24234 Rev. B, 03-31-04
7
“F” into a binary representation of the hexadecimal number and ground the pins
which should have a zero value.
The pin connections are shown below. A “Ground” indicates the pin should be
connected to a ground pin. The notation “n/c”signifies there should be no
connection to the pin.
To use the hard-wired address, the Address Switch MUST be set to “F”.
If it is not, an address conflict will exist between the wiring and the switch.
The address can be set with either the address switch or with the card
edged connector wiring. Only one of the two methods may be used.
If the card edge connector wiring method is NOT used to set the pump address,
the address must be set with the Address Switch (Figure 2-1).
An 8-bit digital voltmeter (DVM) is built into the pump I/O. It is accessible on pins
27 and 28. The analog signal to be read should be placed on pin 27 and the
analog signal ground should be connected to pin 28.
The DVM Input allows 8-bit measurements of external analog voltages. Analog
values may be reported to the host controller, or used within a user program to
compare a measured analog value to a user-preset value to make a conditional
program jump. Also, the DVM Input can be used to set program instruction
parameter values, as described in Section 4.5.2.
The input impedance is 1 Mohm for dc inputs, and is 20 Kohm in series with 0.1
uF capacitance to ground for high-frequency signals. This input impedance is
due to the anti-aliasing filter. The anti-aliasing filter at the input, shown in Figure
2.2A, has a -3 dB cutoff frequency of 80 Hz, and an attenuation rate of -6
dB/octave above the cutoff frequency. Although the conversion time for an input
sample is approximately 18 microseconds, the time constant of the filter is 2
milliseconds. If the input value changes, 5.5 time constants are required, worst-
case, for the new value to settle to within the resolution (1/256 of full scale) of the
DVM. If an abrupt step change were to occur as a conversion begins, the input
filter time constant will insure that the correct valve at the start of conversion will
be read to within the DVM accuracy.
The internal numerical value for a DVM input can be calculated by this relation:
To avoid noise and errors due to ground loops, the ground wire of the voltage
source to be measured should be twisted together with the input wire (a "twisted
pair") and connected directly to the analog ground pin. If a shielded, twisted pair
is used, the shield should be grounded at one end only.
P/N 24234 Rev. B, 03-31-04
9
2.1.4 Reset Input
A Reset Input is located on pin 25. When this pin is brought low (below 0.8Vdc),
the processor resets. The reset condition remains active while the input is low.
When the input is returned high, the processor begins a pump initialization cycle
after a 0.25 seconds delay. The Reset Input is referenced to a ground on one of
pins 23 to 26. Reset is also automatically generated internally when power is first
applied. A reset causes the following actions:
(1) a checksum is computed on the firmware memory to verify its integrity
(2) the syringe position value is set to zero (position is no longer valid)
(3) the "position snapshot" values are reset to "-1"
(4) any error messages are erased (cleared) and the Error Out is turned OFF
(5) the valve moves to the "home", or port A position, if enabled
(6) temporary memory (RAM) is cleared
(7) the communications buffer is cleared
(8) the pump address is read and saved
(9) the Com Setup Switch status is read and saved
(10) syringe speeds are set to the values saved in the non-volatile memory
(11) the User Outputs are reset to OFF
Three Digital Inputs are provided on pins 18, 20, and 22. Each of these inputs
can be queried at any time, even during pump operation and while an internal
program is executing. These inputs may also be used to control operation of the
pump.
As shown in the equivalent input circuit in Figure 2-2B, each input has a 4.7K pull-
up resistor and is protected for input voltages up to 30 Vdc. Inputs are compatible
with CMOS and TTL logic operating from 5V supplies, with other pump's digital
outputs, and with external switches. An "on" input is less than 1 V. An "off" input
is more than 3.5 V, or an open circuit. The internal resistance provides the bias
required for external switches. External switches should make a connection to
ground when in the "on" condition.
2.2 OUTPUTS
Three digital outputs are provided on pins 17, 19, and 12. These outputs appear
directly opposite the digital inputs described in Section 3.5. Each output consists
of an open-collector MOSFET output rated for up to 170 mA and 40 Vdc. The
outputs may be controlled under internal user program control or may be set by
external commands from a controller.
The Digital Outputs are “active low”. An “on” condition is a 5-ohm resistance to
ground. An “off” condition is an open-circuit. This is compatibility with the digital
inputs.
P/N 24234 Rev. B, 03-31-04
10
2.2.2 Error Outputs
Pin 16 provides an Error Out suitable for driving logic or an LED indicator. The
output is active whenever an unreported error condition exists within the pump.
When an error condition occurs, the Error Out on pin 16 is set to an “on” condition,
which acts like a 5 ohm resistance to ground. In the absence of an error or after an
error has been reported to a controller via the communications I/O, the Error Out
is an open-circuit.
The Error Bias output on pin 15 consists of a 330 ohm resistor connected
internally to the +5 Vdc power. This output provides a current-limited output suitable
for direct drive of an LED indicator anode. To drive an external LED error indicator,
connect pin 15 to the anode and pin 16 to the cathode.
If an LED is not used, the Error Out can be used to drive some other error
indicating device. The maximum output voltage in the “off” condition is 40 volts. If
an external supply is used, a common ground connection should be taken from the
I/O ground to the external supply ground. Since no internal protection is provided
for inductive loads, if relays or solenoids are driven, a clamp diode across the load
is required. For sending an error indication to a remote electronic equipment, the
Error Out pin can be used to drive the input of an opto-isolator.
The Error outputs of several devices may be tied together to make a single "wire-
OR'ed" system error signal. This signal may be used to drive a LED or an input to
a controller.
To power external I/O circuits, the card edge interface includes a +5 Vdc power
output on pin 5. This output is rated for loads up to 100 mAdc. Any of the Ground
pins on the card edge may be used in conjunction with this pin.
The serial I/O (IOX) expansion port is independent of the serial communications port
and is located on pins 1 through 6 of the edge connector. The IOX uses four
signals: IOX Input, IOX Output, IOX Clock, and IOX Strobe.
The IOX Input receives serial data as 8-bit bytes from an external circuit and the
IOX Output sends data as 8-bit bytes from the pump. The IOX port acts as a
“master” using the IOX Clock to synchronize the serial data transfers bit-by-bit. The
IOX Strobe acts as a synchronous, active-low enable signal for external devices.
Depending on the value of the IOX mode parameter “~S”, IOX operation will
perform one-byte or two-byte data transfers.
The pump provides serial communications compatible with PC serial ports and
RS485 I/O cards. There are to physical protocols, RS232 and RS485. There are
two communications protocols, DT and OEM. See Section 6.4 for the
communications physical protocol specifications and Section 6.3 for the
communications protocols.
The RS485 I/O is available on pins 11 through 14. There are two signals, RS485
“A” and RS485 “B”. The "A" line is the "positive" line, and the "B" line is the
"negative" line under idle bias conditions. To prevent common-mode voltage
errors, the communications should also use the Com Ground on pin 10 for an
RS485 communication ground in addition to the "A" and "B" lines.
The “A” signal is duplicated on pins 13 and 14, while the “B” signal is duplicated on
pins 11 and 12. This duplication permits a straight wire to pass straight through
each pair of the “A” and “B” lines to interconnect a series of devices.
The RS485 bus requires a proper bias and termination network for reliable
operation. The necessary network is included in the pump and is applied via the
RS484 Bias toggles “3" and “4" on the Com Setup Switch shown in Figure 2-3.
The first and last devices on an RS485 bus should have the network switched “on”.
All other devices between the first and last devices should have the network
switched “off”. A toggle is “on” when the button is positioned to the center of the
switch housing; a toggle is “off” when the button is positioned nearest the edge of
the switch housing.
Do NOT have more than two RS485 bias networks switched “on”, regardless
of the number of devices on the bus. Use ONLY one network “on” at each
end of the overall RS485 bus wiring.
The com bus wiring should be a twisted pair for the “A” and “B” signals. The rate
of twist should be approximately one to three turns per inch. The ground wire may
be a shield or a third wire twisted with the “A” and “B” wires.
An RS485 bus with multiple devices must be wired directly from device-to-
device, using “A”, “B”, and “Com Ground” pins.
There are two lines: RS232 Rx on pin 7 and RS232 Tx on pin 8. The Tx pin sends
data from the pump to a controller, and the Rx pin receives data from a controller
Turn “On” or “Off” BOTH toggles 3 and 4 to connect the RS485 bias network.
Do not have only one of the RS485 Bias toggles set to “On”.
The Default toggle (number 1) must be in the “Off” position to permit the
baud rate and protocol to change from the factory default settings.
The Address Switch, shown in Figure 2-1, sets the communications address of the
pump on the RS485 bus. There are 15 legal pump addresses on the switch: “1"
through “F”. Address “0" is reserved for a controller address and cannot be used
for a pump address.
If the Address Switch is set to “F”, the pump address may be determined by
wiring the Address pins on the card edge connector, as explained in Section 2.2.
If the switch is in any other position, the wired address will conflict with the switch
address.
This section describes the basic setup required to control a single VersaPump 6
from a PC. Refer to Figure 1-1 for the general nomenclature of the major pump
components. The following items are required for a basic bump installation:
Quantity Item
(1) V6 8-channel drive module
(8) 3-way solenoid valves
(24) Valve O-rings
(8) Syringes
(24) Teflon washers
(1) Power supply (24 to 30 Vdc, 40 Watts minimum)
(1) Communications cable, PC-to-pump, Kloehn P/N 17734
(1) PC communications software
(1) Card edge adapter board, Kloehn P/N 23352 or card edge connector,
Kloehn P/N 23277 or equivalent.
Getting started requires certain basic actions be taken, in order. These actions are:
Section 3 leads the first-time user through these steps using either the Kloehn
Starter Kit or user-supplied power and wiring. Advanced users can go directly to
Section 4 to study the command set.
(1) Referring to Figure 3-1, place an O-ring in each of the three fluid ports on the
manifold.
(2) Insert the valve onto the manifold such that the three tubular protrusions on
the bottom of the valve enter the corresponding three fluid ports. Ensure the
valve is oriented properly. The legend “N.O.” must be nearest the front of the
manifold, and the legend “COM” or “COMM” must be nearest the rear.
(3) Install the two valve screws through the mounting flange and into the
manifold. Tighten the screws with a light torque. Over-tightening can
damage the valve.
(4) Insert the three-pin connector onto the two pins at the top of the valve. The
connector should be oriented as shown, with the upper part extension
facing forward.
NOTE: The orientation of the valve must be correct. If the valve is installed
in the reversed position, it will not operate properly. See (2) above.
(1) Place a Teflon® washer into the syringe port on the bottom of the manifold.
(2) Insert the syringe into the syringe port and tighten to a finger-tight tension.
Do not over-tighten the syringe, as the hole in the washer will tend to cold
flow into a smaller diameter over time if it is over-tightened.
Note: The Teflon washer MUST be used to ensure the syringe fully seats.
If the washer is not inserted, the syringe will bottom out on its shoulder.
The Kloehn Starter Kit, P/N 23427, contains all the accessories needed to power
the V6 pump and control it using a PC. The following items are included in the kit:
1. 24 Vdc Power Supply, P/N 17732, with power cables (Figure 3-3)
2. RS232 Communications cable, P/N 17734 (Figure 3-2)
3. Card Edge Adapter Board, P/N 23352 (Figure 3-1)
4. Disk with software and manual, P/N
5. Installation instruction sheet
When inserting a wiring connector into an Adapter board connector, ensure the
Polarizing Key is oriented toward the Locking Tab, as shown in Figure 3-5, and
the pins are properly aligned with the connector.
The Communications Cable (com cable) has a DB-9 connector on one end and a
three-pin .1-inch connector on the other end, as shown in Figure 3-2. Plug the 3-pin
connector into the adapter board connector labeled “232". Note the polarization of
the locking tab on the 3-pin connector as shown in Figure 3-1. Plug the DB-9
connector into a serial port on the PC.
The 24 Vdc power supply, P/N 17732, is provided with two cables as shown in
Figure 3-3. The 24 Vdc cable is integral to the supply and has a 4-pin connector
attached. This cable connects to the pump via the Card Edge Adapter. Plug the
4-pin connector into the Adapter board connector labeled “POWER”. Observe the
locking tab polarization.
Note the Power Indicator Light on the power supply. If it is not lighted, change
the position of the Switch on the AC power cable. There will be a slight delay before
the Power Indicator lights. When the indicator is lighted, the power supply is
delivering 24 Vdc power to the 4-pin connector.
Note: On the 4-pin DC Power connector, the two inner pins are identical +Power
Input and the two outer pins are identical Ground pins. The power supply has
sufficient capacity to power one VersaPump 6.
If the Card Edge Adapter Board (Adapter P/N 23352) is not used, the card edge
connector, P/N 23277 or its equivalent is required. The connector is a 36-pin card
edge connector having 0.156-inch pin centers.
Insert the card edge connector onto the card edge at the rear of the pump. Note the
power pins are at the bottom edge of the connector, as indicated in Figures 2-1 and
3-4.
Be certain the card edge connector is oriented with the power pins at the
bottom of the connector as shown in Figures 2-1 and 3-4.
Figure 3-4 shows the connections for DC power and communications with a PC.
The PC serial port connects to the “RS232" pins.
The RS232 cable wiring is illustrated in Figure 3-5 for both DB-25 and DB-9
connectors. For connecting more than one pump, see Sections 6.5 for
communications wiring and Section 9.2 for power distribution wiring. Section 6.5
also illustrates the wiring for an RS485 bus.
The four toggles are located on the Com Setup Switch shown in Figures 2-3 and
3-4 should all be set to the “On” position.
Note pins 2 and 3 are reversed between the DB-9 and the DB-25.
The Address Switch, shown in Figure 3-4, set the device address number. Using
a small screwdriver, set the switch to “1".
All communications with the pump begin with the address number. The address
may be set with the Address Switch or by wiring on the Address pins of the card
edge connector. The card edge wiring method permits a wire harness to set an
address when multiple pumps are used in an instrument. See Section 2.2 for the
address wiring details.
The following procedure will locate and configure the HyperTerminal program.
. (5) Go to Connect Using, select Direct to COM1, and click on OK. This will
select a serial port. If you are using another serial port, then select the
appropriate "Direct to Com...".
(2) After the pump has initialized, send the command: /1 <Enter>
(3) The pump should respond with “/0`”. If this response is seen, proceed to the
next section. If not, go to Section 6.6 for troubleshooting tips.
A command consists of ASCII characters and contain two parts: the command
and its argument. The command is a case-sensitive letter which represents a
specific type of action to perform. The argument follows the command letter and
determines how the command will execute. For example, the command “D1200"
tells the pump to dispense (“D”) 1200 steps.
All commands and command strings must begin with a device address. The
device address determines which devices will respond to a particular command
string. In this way, many devices can be connected together on a single
communications line without interfering with each other. The character which
signifies an address is the forward slash, “/”. When the slash is seen by a pump,
the pump reads the character which follows as an address to determine if that
pump should accept the command string. The individual device address is set via
the Address Switch or by the Address pin wiring on the card edge connector.
For example, if the Address Switch is set to “3", a command string which begins
with “/3" will be accepted by the pump. If the string were to begin with “/2", the
pump would ignore the string.
Most command strings cannot be accepted until the previous command string is
completed. The exception to this rule is queries. A query asks the pump to report
something, not to do something. A query can be asked any time and will be
answered when it is received, even if the pump is busy.
Look up the Expansion I/O parameter listed in Section 4.6. Then send the
command
/1~Sn <Enter> (Substitute the number of the I/O mode in place of “n”.)
<Enter> means to press the Enter key on the keyboard.
The syringe zero position must be calibrated prior to the first use of the syringe
whenever a new syringe or syringe washer is installed. This is a simple procedure
using the buttons on the front panel.
(1) With the syringe already mounted to the pump, press the lower of the two
front panel buttons, the INITIALIZE button. This will cause the syringe to
move to a position a small distance below the top-of-stroke. This position is
internally fixed and is sometimes called the soft limit.
(2) When the INITIALIZE move completes, the syringe motor power will be Off.
(Normally, when a move ends, the motor is left at half-power.) Rotate the
Thumbwheel at the lower left corner to move the syringe piston upward until
it barely contacts the top of the syringe. This will be the zero position, also
called Home. In some applications, the position may be slightly below the
top-of-stroke position if a small air gap is desired.
(3) Press the upper button, the SET HOME button. The syringe will move
downward to the INITIALIZE position and then return to the zero position.
When step (3) above executes, the location of the zero position is stored in NVM.
This value will remain even after power is removed from the pump. The zero
position will be remembered by the pump whenever the pump is powered up.
All the basic setup procedures are now complete. This section introduces some
basic commands and illustrates the difference between individual commands and
command strings. The notation <Enter> means to press the Enter key on the
keyboard. The “R” at the end of each command means “Run the command now.”
This causes the syringe to move to the position 24000 steps below the zero
position. “A” means “go to the Absolute position”. This will be half-way down
for a 48000-step model or all the way down for a 24000-step model.
The valve will move to the “Output” position. This is the lower of the two
ports on the manifold directly above the individual syringe.
The same sequence of commands is executed as for the individual commands, but
without any delays and as if a single, more complex command had executed. This
is an example of a command string. Next, a query will be illustrated.
This section presents the commands supported in the V6 pump. The first column
lists the command syntax. The values in parenthesis ( ) indicate the range of values.
The value in brackets [ ] is the factory default value. The notation “@n” signifies the
argument may be an indirect variable. Indirect variables are explained in Sections
8.1.4 and 8.3.7.
The non-volatile memory is limited to 10,000 writes. For this reason, use
configuration commands only when a specific operating configuration must be
changed. A configuration setting is stored for the life of the pump or until changed.
These commands cause the syringe to move to a commanded position along its
range of motion. An absolute position is a specific point. A relative position is a
distance offset from the current position. Absolute vs relative positions are
illustrated in Figure 4-1.
It is highly recommended that the upper case form of the "An", "Bn", and "Cn"
commands be used so that busy status can be ascertained. The lower case "an",
"bn", and "cn" do not reveal busy status upon query.
In each of the commands below, the "n" value is expressed in steps, where "0" is
at top-of-stroke (0 volume).
An Go to Absolute position "n", with the BUSY status bit set to "busy".
(n: 0...24000 steps or 0...48000 steps, @n) [n/a]
an Go to absolute position "n", with the BUSY status bit set to "ready".
(n: 0...24000 steps or 0...48000 steps, @n) [n/a]
Dn Dispense "n" steps from the current position, with the BUSY status bit set
to a "busy". The dispense direction is upward, towards the valve.
(n: 0...24000 steps or 0...48000 steps, @n) [n/a]
dn dispense "n" steps from the current position, with the BUSY status set to l
"ready". The dispense direction is upward, towards the valve.
(n: 0...24000 steps or 0...48000 steps, @n) [n/a]
Pn Aspirate (“Pick up”) "n" steps from the current position, with the BUSY status
bit set to a logic "1". The aspirate direction is downward, away from the
valve. (n: 0...24000 steps or 0...48000 steps, @n) [n/a]
pn Aspirate (“pick up”) "n" steps from the current position, with the BUSY
status bit cleared to a logic "0". The aspirate direction is downward, away
from the valve. (n: 0...24000 steps or 0...48000 steps, @n) [n/a]
Referring to Figure 4-1, relative position is measured from the current position to the
target position. Absolute position is measured always from zero position (top of
stroke). In the figure above, a move from the upper position at 8600 absolute to
the lower position at 40000 absolute can be done with either a relative aspirate
(move downward) or an absolute (go to position) command as follows.
Absolute move: A40000 (final position measured from zero)
Both commands will result in the syringe moving to the position shown on the right.
In general, any move which goes to the zero or maximum (full-stroke) positions
should use an absolute positioning command (e.g, “A0" or “A48000"). A move
which goes from one position to another position which is not at either end of the
stroke would use a relative positioning command (“Pn” or “Dn”), although an
absolution positioning command could also be used.
Use the capitalized version of the An, Pn, and Dn commands. Lower-case
versions will not report a “busy” status if the pump is queried while moving.
The coordination between the two pumps is done automatically by the pumps when
their inputs and outputs are connected as explained in Section 8.3.3. The value of
“n” in the handshake dispense commands determines which of the user inputs will
be used for the handshake coordination. For example, if the command is “h2", then
the pump will use input #2 and output #2.
As each pump nears the end of its dispense, it provides an advance trigger signal
to the other pump, which immediately begins its own dispense. The timing on the
trigger signal is automatically adjusted to compensate for different acceleration
settings.
During power up of the pump, default values in the operational memory are recalled
from the NVM. The operational values can be set at any time a move is not in
progress. Top Speed is an exception, as it can be set “on-the-fly”.
Except as noted, all these commands require a “R” (Run) command to execute
immediately.
Vn Set the syringe Top speed to "n" steps per second (sps). The Top speed is
the rate at which dispenses and aspirates operate. Top speed can be
changed "on-the-fly" during a syringe move. For speeds above 1000 sps,
changes in speed which are too large may stall the syringe motor. A “R”
command is not required for this instruction.
(n: 40...10000, @n) [5000]
vn Set the Start speed to "n" steps per second.
(n: 40...1000, @n) [750]
! Store the current values of Top speed, Start speed, Stop speed, and
Backlash as the default values to be used after each power-up or reset. This
command may not be stored within a program.
For most applications, only the Acceleration and Top speed are adjusted. The
remaining parameters are left at the default settings. If the Top speed should be set
to a value lower than the Start speed, the pump will begin the move at the Top
Speed. If the Top speed is set lower than the Stop Speed, the move will end at the
Top Speed. For this reason, values of Top speed which are set lower than either
the Start Speed or the Stop Speed do not require any adjustment in Start speed or
Stop Speed.
4.1.3 Initialization
The syringe position must be initialized after each power-up, reset, or syringe
overload condition. Until the syringe has been initialized, other syringe movement
commands will not be accepted. This is because the syringe position cannot be
absolutely known after the preceding conditions occur. An initialization command
causes the syringe to go to the INITIALIZE position. This is the only absolutely
n=4 Move the syringe to the INITIALIZE position after setting the valve to
the Input position.
n=5 Set the current syringe position as the "Zero" position. The result is
automatically stored in non-volatile memory (NVM).
?2 Query the syringe Top speed (“Vn” value) in equivalent steps per second.
?3 Query the syringe Stop speed (“cn” value) in equivalent steps per second.
?29 Query the contents of the syringe position snapshot memory.
?30 Query the acceleration and deceleration numbers (“Ln” and “lm” values).
Two numbers are returned. The first number is the acceleration number and
the second is the deceleration number.
The valve ports are not inherently directional. The actual direction of fluid flow at
any port is determined by the relative motion of the syringe. An aspiration draws
fluid into a port and a dispense ejects fluid from a port.
The 8-channel pump uses one 3-way solenoid valve for each of the eight syringes.
This valve has two positions: Input and Output.
I Move a three way solenoid valve to the "input" position (upper port).
O Move a three way solenoid valve to "output" position (lower port).
These commands set a User Output logic level or send an output byte via the Serial
Expansion I/O port. All these commands require a “R” command to execute
immediately.
sn Send a serial byte from the User Serial expansion Port, MSB first. The value
of the ASCII number "n" is the base 10 representation of the value of a
binary byte. For transmitted bytes, positive logic applies ("1" = high logic
level). In the 2-byte serial mode, "n" represents the second byte sent. The
first byte is the same as the first byte sent by a "sn,m" instruction. See
Section 4.5 for an explanation of "@n" usage.
(n: 0...255, @n) [n/a]
Example: s85 Send the decimal number “85" in binary format. The
serial I/O device will receive the binary number
01010101 (= 85 in decimal - base 10 - format). A “1" is
a high logic level and a “0" is a low logic level.
sn,m Send two bytes from the User Serial expansion Port, byte "m" first and then
byte "n" second. Both bytes are sent MSB (most significant bit) first. The
values of "n" and "m" are expressed as the ASCII base 10 representation of
the binary bytes.
(n: 0...255, m: 0...255, @n) [n/a]
Example: s85, 129 Send the decimal numbers 85 and 129 as binary
numbers. The external serial I/O device will
receive the binary numbers 01010101
10000001. A “1" is a high logic level and a “0" is
a low logic level.
Example: s@10, 35 Send two numbers. The first is the same first
number sent when this command was last used,
and the second number is “35" (00100011). See
Section 4.5 for an explanation of "@n" usage.
Input query commands are sent from a host controller and request a status reply
from the pump. These commands are executed when they are received by the
pump and do not require a “R” command. These commands can not be embedded
in a program string.
?4 Query the "User Input 1" status. Send the value to the host as an ASCII "1"
if "true" (low logic input level) or an ASCII "0" if "false" (high logic input level).
Example:
command /5?4 Query User Input #1 status on pump #5
?5 Query the "User Input 2" status. Send the value to the host (see "?4").
?6 Query the "User Input 3" status. Send the value to the host (see "?4").
?7 Query the analog input value at the Digital Voltmeter input. Send the value
to the host controller as an ASCII base 10 number. Voltage = number x 0.02
volts.
Example:
?20 Query the value of the second byte received from the Expansion I/O port
input in 2-byte mode. Two input bytes are shifted in (MSB first), and the
numerical value of the second input byte is reported in a base 10 ASCII
format. The value uses a negative logic convention (low level = 1, high level
= 0). This instruction is not valid in 1-byte mode.
?n Query the state of the Expansion I/O port input bit designated by "n". A
serial byte is input (MSB first), and the state of the designated bit is reported
as an ASCII "0" if the bit is "false" (high input logic level) or an ASCII "1" if
"true" (low input logic level).
(n: 11...18 bit 1...8 in Expansion input byte #1
21...28 bit 1...8 in Expansion input byte #2)
If the input is “true”, then jump to the place marked by the program label
These commands are used to control the way a program executes, depending
upon the state of an input variable (the voltage level on a User Input pin). The
commands are intended to be embedded within a program string and not to be
executed alone. See Section 4.4.3 for more information about program jumps and
labels.
inp If the input level is true (low input level), jump to label "p". This checks if a
user input pin on the card edge connector is at a low level. There are three
user inputs. If an I/O Expansion Board is used, the number of inputs
increases by 16, organized as two bytes of eight bits each.
(n: 1...3 User input number 1...3
i<np If the analog input (DVM) value is less than the number in the command,
jump to label “p”. The input voltage range of 0 to 5V is converted into one of
255 levels. The number “n” is the numerical value of the level. This can be
found as n = 51 x input volts, truncated to an integer number.
(n: 0...255, @n p: a...z, A...Z)
Commands, command strings, and programs are executed in the pump RAM
(temporary) memory. The pump can also store programs in non-volatile memory
(NVM). The NVM acts like a solid-state disk drive. See Section 7 for details on the
pump’s internal memory.
User program storage commands can load, save, run, or erase user programs in
the pump memory. Program execution commands are used to stop or start
programs. Program control commands determine the order of execution (flow) of
a program.
These commands control the storage, retrieval, and erasure of a user program in
the non-volatile user program memory (NVM). These command execute when
received and can not be placed within a program. A “R” command is not required.
En Store the current command string into non-volatile memory. Maximum
program length is 450 characters.
(n: 1...10 for standard NVM, 11...99 for expanded NVM) [n/a]
~An Enable or disable autostart for a program in NVM. If “n” is not zero, begin
executing the numbered program when power is applied or after a reset.
If autostart is disabled, a stored program is started with the "r n" command.
(n: 0 = disable, 1...10 = enable, @n) [0] (See Section 7.2.3)
The “T” command may cause the syringe to “loose steps” and generate a “Z”
error if the “T” command is used to stop the syringe motion at a high speed.
fnp If the flag is set (=1), then clear it and jump to label “p”. This is useful to
change the way a program executes if the path has already been done once
before. The program will jump the first time this instruction is encountered,
but not when it is encountered after the first time. A flag is a bit which can
be set (turned “on”), cleared (turned “off”) or tested (if...then). There are
eight flags, numbered 1 through 8.
(n: 1...8 p: a...z, A...Z)
inp If the input level is true (low input level), jump to label "p". This tests if a user
input pin on the card edge connector is at a high or a low level. There are
three user inputs. If an I/O Expansion Board is used, the number of inputs
increases by 16, organized as two bytes of eight bits each.
(n: 1...3 User input number
11...18 bit 1...8 in Expansion input byte #1
21...28 bit 1...8 in Expansion input byte #2
p: a...z, A...Z)
i<np If the analog input (DVM) value is less than the number in the command,
jump to label “p”. The input voltage range of 0 to 5V is converted into one of
255 levels. The number “n” is the numerical value of the level. This can be
found as n = 51 x input volts, truncated to an integer number.
(n: 0...255, p: a...z, A...Z)
i>np If the analog input (DVM) value is greater than the number in the command,
jump to label “p”. The input voltage range of 0 to 5V is converted into one of
255 levels. The number “n” is the numerical value of the level. This can be
found as n = 51 x input volts, truncated to an integer number.
(n: 0...255, p: a...z, A...Z)
y<np If the syringe position is less than "n", jump to label "p". This is useful in
loops which repeatedly aspirate or dispense until some event occurs. This
test can prevent the error which occurs if a move is commanded beyond
zero or full-stroke.
(n: 0...24000 or 0...48000, @n p: a...z, A...Z)
The next example illustrates the use of a repeat loop to perform a series of tasks
for a specified number of times.
4.5 VARIABLES
There are eight general variables, z1 through V6. There are two forms of syntax
used with the general-purpose variables: one to use the variable in a command and
one to set the value of the variable.
The value of a general variable may be declared at any time prior to the execution
of the program using the variable. The value of the variable must be valid for the
command in which it is used. If an invalid value is used, an error message results.
Example: /1z1=45z2=4500z5=12000R A typical run-time declaration for a
stored program
/1r7
z1=45 Set general variable z1 = 45
z2=4500 Set general variable z2 = 4500
z5=12000 Set general variable z5 = 12000
r7 “r7" means to run the stored program #7 in the non-
volatile memory using these variable settings.
The "zn" command executes as soon as the pump recognizes the command. The
"zn" command cannot, therefore, be stored as part of a program. The values of all
"zn" commands are stored into RAM, and are lost if the power is removed from the
pump or if the pump is reset. The default value of all zn variables is zero after a
reset.
The general variables are also used by the “K^n” instruction as counter memories
(see Section 4.9.1). This provides a direct access by instructions to counter
memory values. Similarly, the “zn=m” syntax can be used to preset a counter
memory value. The variable accessed by a counter memory has the same
number as the zn variable number. Thus the value of z3 = the value of counter
memory #3. General variables also offer a means pass parameters between
stored programs.
@6 not used
@10 most recently-sent value of the byte #1 sent with the sn,m command
Any variable can be used repeatedly by a command or used by more than one
command. Care must be taken in the latter case that the usage is consistent and
proper. In addition, variables can be changed “on the fly”.
The value of a variable can be scaled or not scaled, depending on the instruction
using it. A variable which is scaled considers the variable to be a fraction of the
maximum range of the parameter for which it is used. The instruction s which do
this are those for which the valve could exceed 255. See Section 4.5.3 for an
example.
For instructions having values which are always not more than 255, the value of the
variable is used literally, at its face value, as the value of the command.
The commands listed in this section may use variables. The column labeled
“Scaled” indicates if the variable is scaled for use with a particular command.
Variables which are not scaled are used as the actual numeric value of a command
argument. Variables which are scaled are used to compute a proportional amount
of the argument’s range. The proportion is
Example: L@3 Not scaled. Use the number as the value. If the binary value
of the voltmeter input were “6", the command would be “o6".
Example: V@3 Scaled. The value used for the command will be proportional
to the maximum value of the number. In this case, if the value
of @3 were “127", the actual argument would be 4980. This
is computed as follows:
Maximum V = 10000, maximum analog value (@3) = 255.
In the preceding example, the DVM input accepts a dc voltage from 0 to 5 Volts
and converts this voltage to a parameter value. A parameter value may be scaled.
Thus, if a potentiometer is used to input a voltage, the potentiometer dial could be
calibrated to read from 0 to 100 percent, and would then be applicable to any scaled
parameter.
A given variable is not restricted to use by one command nor to one instance of a
command. However, the value of a variable must be compatible with all commands
which use it. Thus, for example, a variable can be used to set a speed at different
points in a program and also used by the software counter to alter its value during
program execution.
A variable may also be used or set within different programs. General variables are
set within a program using the software counter commands. This allows a stored
program to set global variables to be used in another program which it calls as a
subroutine.
The commands which can use a variable for an argument are listed in the next
table. The commands in the table can use a variable in place of a fixed value for
“n”. Variables can not be used for labels.
All configuration parameters are automatically saved into the non-volatile memory
(NVM) when they are set. The settings will be remembered even without power for
the life of the pump or until they are changed.
Configuration commands execute when they are received and do not require a “R”
command. They can not be used within a program.
~An Select the program to auto-start when the power is turned on. A selection
of "0" means no program is selected for an autostart. If the value is not zero,
the number is the program number to be autostarted after power-up or
Reset. If no parameter "n" is entered, the current value of "n" is returned.
(n: 0...10, @) [0]
~Ln Set User Input #3 operating mode. If "n" is omitted, the current value of the
operating mode will be returned. The default is 0. Regardless of the
operating mode, the syringe position snapshot feature is active (See “?29"
in Section 4.7).
n Operating mode
0 Normal The input is a normal logic input
1 Limit A syringe dispense will stop when the input goes low
Query commands are executed when they are received. They return a value or
set of values to the query. A query command can be sent at any time, even if the
pump is busy doing something else, and a reply will be sent.
All query commands are executed when they are received and can not be placed
within a program. Query commands do not require a “R” command to execute
immediately.
Q Return the status byte. (See Section 5.0 for status replies.)
The simplest form of status query is a Carriage Return (hex code 0D). The
command “/ address <carriage return >” returns only a single-character ASCII
status byte. Example: /1<Cr>
? Query the syringe absolute position. Return the value in steps from zero
position (top-of-stroke).
?4 Query the status of the User Input #1. Return “1" (“true”) if low or “0" (“false”)
if high.
?5 Query the status of the User Input #2. Return “1" (“true”) if low or “0"
(“false”) if high.
?6 Query the status of the User Input #3. Return “1" (“true”) if low or “0"
(“false”) if high.
?7 Query the voltage at the Digital Voltmeter input. Send the value to the host
controller as an ASCII base 10 number. Voltage = number x 0.02 volts.
?8 not used
?9 Query the number of unused bytes (characters) in non-volatile program
memory. (170 maximum)
?10 Query the first byte value of the Expansion I/O port input. An input byte is
input (MSB first), and the numerical value of the input byte is reported in a
base 10 ASCII format. The value uses a negative logic convention (low level
= 1, high level = 0). In 1-byte mode, this is the only byte. In 2-byte mode,
this is the first of two bytes.
?19 Query which program numbers are currently used to store a program.
Return a list of the numbers in use, separated by a space between numbers.
?20 Query the numerical value of the second byte of the Expansion I/O port
input in 2-byte mode. Two input bytes are received (MSB first), and the
numerical value of the second input byte is reported in a base 10 ASCII
format. The value uses a negative logic convention (low level = 1, high level
= 0). This instruction is not valid in 1-byte mode.
?29 Query the contents of the syringe position snapshot memory. When the
User input #3 transitions from high to low, the current value of the syringe
position is stored in the snapshot memory. The last two consecutive
snapshots are saved and reported.
?30 Query the acceleration and deceleration values. Return the acceleration
value first and the deceleration value second.
?n Query the state of the Expansion I/O port input bit designated by "n". A
serial byte is input (MSB first), and the state of the designated bit is reported
as an ASCII "0" if the bit is "false" (high input logic level) or an ASCII "1" if
"true" (low input logic level).
n: 11...18 = serial byte 1, bit 1...8 of the serial expansion port
21...28 = serial byte 2, bit 1...8 of the serial expansion port
F Report the communications buffer status.
1 = command in buffer, 0 = buffer empty
& Report the firmware version as: <letter> <reference P/N> -<ID letter><rev>
(i.e., P50120 -R5)
* Report the supply voltage in decimal volts, rounded to the nearest 1/10 volt.
The value is averaged over not less than 8 readings.
~A Query the NVM user program autostart state. Return "0" if disabled. If
enabled, report the program number to autostart.
~B Query the communications baud rate. Return the baud number “n”.
n Baud rate n Baud rate
1 38,400 5 2,400
2 19,200 6 1,200
3 9,600 7 600
4 4,800 8 300
~H Query the operating mode of the front panel SET HOME button.
n: 0 = The button operation is enabled
1 = The button operation is disabled
Errors may occur during pump operation, in the structure of a user program, during
communications, or in the way a command is given. The pump recognizes these
errors. Normally, an error causes a program or instruction to halt and generates an
error message to be reported in reply to the next received command. This
normal response to an error can be redefined by a user program using a trap.
A user error handler is thus made from three parts: the label which marks the
beginning of the handler, the commands which are the body of the handler, and the
exit command which marks the end of the handler.
A trap instruction takes effect when it is declared in the program. It remains in effect
as written unless it is changed afterwards. Thus error traps can be re-defined “on-
the-fly” in a program. The syntax for an error trap is
xnp where “x” denotes an exception (trap) instruction
“n” denotes the error number to be trapped
“p” denotes the program label which starts the error
handler routine
If error #n should occur after a trap for error #n is set, the program will jump to the
label “p”. By declaring the same trap with a different label, different error handling
routines can be used for the same type of error in different parts of a program.
A trap will operate any number of times if the error occurs externally to the error
handling routine. If the error recurs while executing the error handler (before the
error handler exit), the program will terminate with a standard error exit. In general,
if an error persists in recurring, it can not be solved with a trap. The trap exists to
deal with occasional errors, but cannot fix system errors external to the pump or
serious pump mechanical failures.
Traps can provide graceful recovery or controlled exits from occasional error
conditions. A trap can NOT fix system problems or overcome serious
mechanical difficulties.
The last instruction of an error handler (exception program) MUST be a trap exit
command. Trap exit commands mark the end of an error handler and specify what
action the program is to take when exiting the error handler.
If the exit type “4" is used, use some means must be used to prevent an
“endless loop” of error -> handler -> error -> handler...
This command executes when received and does not require a “R” command. This
command can not be placed within a program. It is intended to be a troubleshooting
aid.
The counters are organized as one active and eight exchangeable variables. All
operations are performed on the active counter. To use one of the other counter
variables, that variable must be exchanged with the active counter. The value of the
active counter will then be placed in the variable and the value of the variable will
be placed into the active counter.
The symbol for the counters is “k”. The counter instructions require a “R” command
to execute immediately. The test-and-jump instructions must be used within a
program.
4.9.2 Flags
Flags are software switches which can be set (“turned on”), cleared (“turned off”),
and tested. Flags are used to indicate the status of something or to change the
way something is done after the first time.
There are six general-purpose flags (f1...f6) and three special-purpose flags (f7...f9).
The flag instructions require a “R” command to execute immediately. The test-and-
jump instructions must be used within a program.
fn+ set flag “n”
(n: 1...9) [n/a]
fn? query the status of flag “n”. Return a “0" is cleared or a “1" if set.
(n: 1...9) [n/a]
fnp test the status of flag “n”. If it is set, then clear it and jump to program label
“p”. This is useful for altering the way something is done the first time this
instruction is encountered. The first time will see the flag set and subsequent
times will see it cleared.
(n: 1...8) [n/a]
For the special meaning of flag “9", see Section 4.9.3. For Flags “7" and “8", see
Section 4.9.4.
The SET HOME button on the front panel can be inhibited, thus preventing it from
being inadvertently activated by a user. There are two ways this can be done, one
of which is a long-term control and one of which is intended to be dynamically set
“on-the-fly”.
When the button is enabled, pressing the button will perform the “W5" command
function, which sets the current syringe position as the “zero”, or top-of-stroke
position and stores the result into non-volatile memory. This is an operation which
should be done only when the valve, syringe, or washer has been changed or when
the top-of-stroke position needs to be changed.
When the button is disabled, pressing the button has no effect. The two means of
controlling the activation of the SET HOME button are:
~Hn Set the SET HOME button mode. If no parameter “n” is entered, the current
value of "n" is returned. Use this as a long-term enable or inhibit. The
number times the SET HOME function can be done is limited to 10,000.
(n: 0 = button operation is enabled; 1 = button operation is disabled.) [0]
f9+ Inhibit the SET HOME button operation. This command operates in RAM
(temporary memory) and is effective as long as power is applied. Use this
command to inhibit button operation “on-the-fly”.
f9- Enable the SET HOME button operation. This command operates in RAM
(temporary memory) and is effective as long as power is applied. Use this
command to enable button operation “on-the-fly”.
f9? Query the status of the button flag “f9". Report “1" is disabled or “0" if
enabled.
The ~Hn and f9 flag interact. If the ~H is set to inhibit, the button will be inhibited
regardless of the state of the f9 flag. On useful application of the flags is to set f9
when the system initializes and clear it only when a technician enters an access
code into a controller or activates a User Input to service the pump.
Even in the "Limit" mode, the User Input #3 can still be used for the normal logic
functions of reporting Input #3 status to a host and for "test-and-branch" decisions
within a program. With this capability, a pump can test the STOP input to determine
if the end of the dispense was due to a completion of the dispense instruction or
due to an external signal. A program can then alter its execution path if an external
STOP signal is received.
The syringe and valve motors can be turned “on” and “off” individually. The syringe
motor normally idles at half-power to conserve energy and reduce idle motor
heating. The syringe motor automatically goes to full power at the beginning of a
move and returns to half-power after the move completes.
mn where “n” denotes the motor and action to take.
n: 0 = turn off the syringe motor
1 = turn on the syringe motor
When a move takes place in either the syringe or valve motor, the normal motor
power operation for the move overrides the current state of the “mn” command.
Example:
m0 turn off the syringe motor (motor is off)
A1200 send the syringe to position “1200" (motor is on during
and after moving)
m0 turn off the syringe motor again (motor is off)
An entire command string can be repeated in its entirety by sending the string
repeat command. The syntax is:
A status byte is returned after about 12 milliseconds following receipt of the carriage
return in each command string sent to the unit. Every pump reply contains a
status byte immediately following the host address “/0".
Example: /0@125 /0 host address (fixed)
@ status byte (ok, busy)
125 a value returned in response to a query
Bit 5 of the status byte, denoted by "X" above, is set to "0" if the pump is busy, and
is set to a "1" if the pump is not busy. The Error # is the number used by the error
trapping command.
C, c The number sent with a command is not valid. The command itself was
valid, but the value sent with it was out of the allowed range of values for that
command. For example, "A25000" has a value, "25000", which is not within
the range of available values. This most frequently occurs when a series of
relative dispenses is commanded, and the last dispense command exceeds
the volume remaining.
E, e A “R” (Run) command was sent with a command which does not require it.
F, f The device supply voltage was too low. The condition may be caused by a
low power supply voltage or by voltage transients on the power supply wiring
near the pump.
G, g A move command was sent while the device was in an uninitialized state.
The device must be initialized before a move command will be accepted.
An initialized state results after a power-up, a reset, or a syringe overload
error.
I, i The load on the syringe drive axis was too great. The syringe motor stalled.
A stall does no damage to the drive system. There are several possibilities:
(1) A fluid path was constricted or blocked. Check for kinks in tubing,
valve washers which may have a shrunken hole, other valves sticking,
and other sources of constriction.
(2) The syringe velocity was too high. Back pressure increases with the
square of velocity. Available thrust force also decreases with velocity.
Reduce the syringe top speed ("Vn" or "Sn").
(3) The acceleration is too high. High acceleration places a power
demand upon the syringe motor in addition to the friction and fluid
back pressure demands. Decrease the acceleration value ("Ln").
(4) The flow path inside diameter is too small for the fluid flow rate. A
larger diameter, shorter path, or lower velocity may be required. The
R, r A program label called by a jump instruction was not found in the program.
Remember that the labels are case-sensitive. A label may have been
changed or deleted when editing a program.
S, s A program stored in the non-volatile memory (NVM) does not have the
required end-of-program indicator. The NVM may have been corrupted. Try
saving the program again into NVM.
T, t There is not enough program memory to hold the entire program.
U, u The HOME (zero) position has not been set. The syringe axis requires
calibration. See Sections 3.2 and 4.1.3.
V, v A called program has called another program. Only one program can be
called at the same time.
When the syringe position is calibrated, the distance from the INITIALIZE
position to the top-of-stroke (zero) is stored into NVM. Each time the syringe
passes up through the INITIALIZE point, the computed position is compared
to the stored value. If the two values do not match within a given error band,
the syringe is stopped and the error message is generated.
The two most common sources of this error are (1) having the Home position
set at the INITIALIZE point and (2), having “lost” (not counted) steps during
a move. Steps can be lost when the “T” command is used to stop a syringe
which is moving at speeds above about 2000 steps pers second or when a
syringe overload occurs.
In the table below, the Switch Setting column is the number to which the Address
Switch is set on the pump. The ASCII Char column refers to the ASCII character
(also the keyboard character) corresponding to the address switch setting. Devices
addressed in this mode will respond with a status byte and an answer to a query.
Switch Hex ASCII Switch Hex ASCII
Setting Address Char Setting Address Char
0 Reserved for controller 8 38 8
1 31 1 9 39 9
2 32 2 A 3A :
3 33 3 B 3B ;
4 34 4 C 3C <
5 35 5 D 3D =
6 36 6 E 3E >
7 37 7 F 3F ?
6.2 MULTIPLE DEVICE ADDRESSING
Multiple pump addressing sends a command string to more than one pump on the
communications bus at the same time. To prevent bus conflicts, the pumps will not
provide a response to a command in one of these multiple-pump addressing
modes.
In the dual device addressing mode, a group of two pumps is addressed. In this
mode, individual devices do not provide status responses to commands.
Pump group 1, 2 3, 4 5, 6 7, 8 9, A B, C D, E
Hex address 41 43 45 47 49 4B 4D
ASCII character A C E G I K M
In the quad device addressing mode, a group of four pumps is addressed. In this
mode, individual devices do not provide status responses to commands.
Pump group 1, 2, 3, 4 5, 6, 7, 8 9, A, B, C D, E, F
Hex address 51 55 59 5D
ASCII character Q U Y ]
In the global device addressing mode, all devices on the bus are simultaneously
addressed. In this mode, individual devices do not provide status responses to
commands. The address character is the underscore, "_", hexadecimal 5F.
Explanation of bytes:
Byte 1: The starting character signals the beginning of a new packet. It is the
front slash character "/" on the computer keyboard, 2F hex.
Byte 2: The device address is a address number for a device or for a group
of devices. It can address a total of 15 devices in the network mode.
Byte 3+n: The ending character indicates the end of a packet. It is 0D hex, the
carriage return on the keyboard.
This section describes the device response packet format of the DT protocol. The
device response packet is a sequence of bytes sent by a device from that device
to a host computer after receiving a command package. The format of the packet
is described as follows:
Byte # Description ASCII Hex
1 Start Character / 2F
2 Controller Address 0 30
3 Status Byte (See Section 5)
4 to N Response (if required) (See Section 4)
N+1 End of Text <ETX> 03
N+2 Carriage Return <CR> 0D
N+3 Line Feed <LF> 0A
N+4 End (Blank) <Blank> FF
Explanation of bytes:
Byte 1: The starting character, 2F hex, which signals the beginning of a new
packet, is the front slash character "/" on a computer keyboard,.
Byte 2: The host address, 30 hex (ASCII 0), is the address number for the
host computer.
Byte 3: The status and error byte describes the device status. Refer to
Appendix C for the definitions of the status and errors.
Byte 4: There may or may not be response byte(s) for a command. In
general, all query commands, "read an input value" commands, and
configuration query commands (~A, ~B, ~P, etc) cause response
bytes. Other commands do not cause a response.
Byte 4+n+3: The extra ending character, FF hex, is an extra character to ensure
the packet is properly sent. This character might not be displayed by
the host terminal.
This section describes the command packet format of the OEM protocol. The OEM
command format is identical to the Cavro OEM protocol. The command packet is
used to send commands from the controlling host device to the syringe drive.
Explicit synchronization and error checking are key aspects of this protocol.
Byte 2: The start transmit character, 02 hex, signals the beginning of a new
packet.
Byte 3: The device address is a address number for a device or for a group
of devices. Up to 15 devices can be addressed.
Byte 5+n+1: The check sum is calculated by an exclusive-or operation on all bytes
except line synchronization byte and check sum byte.
This section describes the response packet format in the OEM protocol. The OEM
response format is identical to the Cavro OEM response format. The response
packet is used to send status and responses from the syringe drive to the
controlling host device.
Byte 5+n: The end-of-response mark, 03 hex, indicates the end of the response
byte(s).
Byte 5+n+1: The check sum is calculated by an exclusive-or operation on all bytes
except the line synchronization byte and the check sum byte.
Byte 5+n+2: The extra ending character, FF hex, is an extra character to ensure
the packet is properly sent. This character might not be displayed the
host terminal.
There are four communications settings: address, bus termination, baud rate, and
protocol. Baud rate and protocol are set by the configuration commands “~Bn” and
“~Pn” as explained in Section 4.6. The address is set via the Address Switch or the
wiring on the card edge connector, as explained in Section 2.5.2 and Section 3.4.2.
The bus termination setting is explained in Section 2.5.1 and Section 3.4.1.
Only the pump at each end of the RS485 bus may have the RS485 Bias
switched “on”. All pumps between the two end pumps MUST have their
RS485 Bias Switched “off”. See Figures 2-1 and 2-3.
Note: If the query is sent while the power-up initialization sequence is in progress,
no response will be seen. The pump does not "listen" until the power-up sequence
is completed.
If there is no response, then if the pump is not powered up, the communications
hardware connection is not properly made, or the communications program is
either not properly configured or not operating correctly. Check the items below:
(1) Insure that the communications connector is inserted properly into the RS-
232 connector and NOT into the RS485 connector.
(2) Try another comm port selection in step (5) of the Terminal program setup
procedure (Section 3.5.1).
(3) Using a voltmeter, with the communications cable connected to the RS-232
pins on P1, measure voltages from the "GND" pin to the "RXD IN" pin and
the "TXD OUT" pin. Each pin should measure -6 Vdc to -15Vdc. If they do
not, the following errors may exist.
(a) "RXD IN" fails the check: the host PC port is not functioning, the
The VersaPump 6 has the ability to store and execute command strings. A
command string is a group of commands run together, without spaces, to form a
single line of legal ASCII characters. Such a string is also called a program. For
example, the commands
I move valve to input position
A0 move syringe to fully-closed position
A3000 fill syringe
M500 delay 500 milliseconds
O move valve to output position
D1500 dispense half of syringe
When a command string is sent to the drive, the string is entered into temporary
memory (RAM). This memory retains its contents while power is applied to the drive
unit. When power is removed, the contents of RAM are lost. After a command
string is executed, it may be repeated by sending the "X" command.
To execute a program at the time it is sent, append a "R" (“Run”) command to the
string. If no "R" command is appended, the program will execute when a
subsequent "R" command is sent. If another command is sent after the program
string and before the "R", or if the "R" is appended to another command, the
original program string will be overwritten by the last command string.
For example, the command "D1000R" will execute as soon as it is received by the
drive. The command "D1000" will be stored into RAM, but will not execute until a
separate, subsequent "R" is sent.
A program string is saved into the NVM by sending it to the RAM without a "R" run
command appended, and then sending the "En" command as a separate
command. When the “En” command is received, the string in RAM is transferred
into the NVM as stored as “program #n”. To erase a command string in NVM, either
overwrite it with another command string or send the "en" (erase) command.
The maximum number of times a program string may be written into the NVM
is 10,000. After this, the integrity of a stored program is not guaranteed.
Because of the limitation on writes, NVM should not be written every time an
application is run. It should be used to store a command sequence or program if
that program will be long-lived in the application. Short-term programs such as
programs which can change often, should be executed from RAM. Some program
which vary in the numbers but not in structure can use general variables, as
explained in Section 4.5.
A program saved into NVM can be queried with the "qn" (program query) command.
When the "qn" command is received, the drive will respond by sending the complete
command string, if any, found in the NVM. The command string will be terminated
with a period. If no command string is found, only the period will be returned after
the status byte.
The VersaPump 6 has the ability to automatically begin executing a program stored
in NVM when power is applied. This feature is known as "Autostart". This is useful
for those applications which may require rapid and automatic pump initialization or
in cases where a program sequence is controlled with User Inputs or Expansion I/O.
The Autostart feature is enabled by setting the "~An" parameter to "1" with the
"~A1" command. The auto-start can be disabled by setting the "~An" parameter to
"0" with the command "~A0". These commands require no "R" command.
The Com Setup Switch (Figure 2-3) DEFAULT toggle switch must be set to
OFF for the Auto-Start feature to function. The toggle will inhibit Auto-Start.
The User inputs and the input test-and-jump instructions provide the means to
“trigger” a program running in the pump. The program can be self-starting on
power-up (see Section 7.2.3 for details). The program would be programmed to
read an input and wait for an active signal to continue program execution. Doing
a series of identical dispenses using a probe and pushbutton (or foot switch) is a
common application of this technique. See Section 8.3.1 for programming
examples of waiting for an input signal.
This section presents some application techniques for good system design. Some
sections discuss means of using some of the pump’s special features, while some
deal with the best programming practices for host controller software development.
Do NOT set the configuration parameters each time the system is powered-
Query <parameter>
if <parameter> is not the <desired value> then Set <parameter>
For example, if the valve type should be “6", the code might look like this in Basic:
Using this technique, factory installations and field replacements will always be
correctly configured. This technique can also be used to ensure any required user
programs are stored into the NVM. If an external text-based configuration file is
used, servicing the system software becomes an easy matter.
Commands might NOT take the same time to execute if an error condition
occurs. Do NOT use timing loops as a means of establishing when to send
The only valid way to determine if the pump is ready to accept another command
is to query its status. The simplest way to do this is to send just the address and a
carriage return character (hex 0D or decimal 13). A typical query might be:
/1<Carriage Return>
Wait for the reply and check the status byte to see if the pump is ready or busy (see
Section 5.1 for the status codes). The queries should not be sent too fast.
Checking at a rate of eight times per second or less is adequate for nearly all
systems. This also permits the controlling software to discover error conditions
much sooner than would otherwise occur.
Two situations are deserve special acknowledgment: valve moves and traps. If a
valve motor stall occurs, the valve will automatically attempt a recovery (see Section
4.2). The recover attempt can take up to several seconds. An error trap causes the
program to go to a user program to handle the error (see Section 4.8). This can
extend the time required for a program sequence to complete.
A second way to determine when the pump has completed a task or operational
cycle is to program the pump to set a User Output to ON when each instance of the
task is done. A controller can sample the controller input to which the pump output
is connected. This technique avoids the communications overhead.
Many tasks are repetitive. These include priming cycles, wash cycles, and some
fixed I/O routines. The essential nature of such command sequences is that they
never vary; they always execute exactly the same way. Such a routine is a good
candidates for a stored program. By storing such a routine in the NVM, the
overhead of repeating it in a program or sending a long command string can be
avoided. A program can “call” another stored program with the call command “jn”.
A host software program can also call a stored routine with the stored program
“run” command “r n”.
Calling stored routines is a very efficient way to handle repetitive tasks. With the
use of general variables (see Section 4.5.1), even tasks which vary only in the
numbers, but not in the sequence of events, can be stored and called.
The pump has two buttons on the front panel. The INITIALIZE button simply moves
the syringe to the internal calibration point. If a user presses this button, no harm
is usually done. The upper button is the SET HOME button. If a user presses this
button, the location of the zero point is reset to some indeterminate (and probably
wrong) location and errors in operation are likely to result.
Button-induced user errors can be avoided by using the HOME button inhibit
features. The button can be inhibited long-term using the configuration command
“~Hn”, which inhibits the button via the NVM. This is useful when only a service
technician is allowed to replace syringes, valves, or washers.
If the user is to be allowed to set a new HOME position, there may be an advantage
in inhibiting the SET HOME button as part of the system initialization. The user, like
a technician, would then enter a “setup” mode to enable the button. The button
would be disabled when the setup mode is exited. For this operation, use the “f9"
flag, as this is not written to NVM. See Section 4.9.3 for operational details.
This section offers techniques for programming the pump using pump command
strings. These techniques extend the usefulness of the pump.
Thus the complete program string for a dispense is then “gD1MnGm”. The
equivalent speed is found as the reciprocal of the time to execute one pass
through the loop.
Speed = 1/Time
Example: gD1M17G6000 (Start Speed = 650)
The calculations above may require fine adjustment in “n” for greater accuracy in
very slow moves.
Errors can occur during operation of the pump. Errors can range from incorrect
commands to motor overloads. The pump can detect most error conditions (see
Section 5). For some systems, the robustness of the design can be enhanced by
programming the pump to take corrective action automatically. This is called
trapping and the part of the user program designed to handle the error is called the
error handler, or exception handler. The syntax to do this is given in Section 4.8.
This section will provide an examples of error trapping.
Example: Trap a syringe overload error. Save the value of the syringe position,
initialize the syringe to the input port, then return to the stall position
and continue the dispense. Note: this assumes the dispense was
intended to deliver all the contents of the syringe.
In the main user program, the trap is set by declaring:
x9V If a syringe overload (#9, see Section 5), occurs, go to label “V”.
At the end of the program, where error handlers are normally located, the
handler might be as follows:
There are some limitations on error trapping. The error trapping feature is designed
to provide a graceful recovery from errors, but it cannot fix system errors. Any error
induced by mechanical or fluidic problems cannot be fixed by a program. Such
things must be fixed at the external root cause. In some cases, a syringe overload
might be handled by reducing the syringe speed and trying again.
Error trapping can NOT fix external mechanical or fluidic problems. Trapping
is intended to provide graceful systems exits from error conditions.
Example: An “error cycle counter” can be included in the trap handling program
to prevent a run-away error trapping loop.
In main program, zero counter memory #2 and declare a trap:
At the end of the program, where error handlers are normally located, the
handler might be as follows:
Example: If any error occurs, set the User Output #2 low, set User Output #1
high, save the current Digital Voltmeter input value, and then exit the
program.
For most applications, the factory default values for syringe accelerations and
speeds are adequate. Usually, only the Top Speed is changed for different syringe
rates. If the Top speed is set lower than the Start speed, the pump will begin a
move at the Top Speed. If the Top speed is set lower than the Stop Speed, the
move will end at the Top Speed. For this reason, values of Top speed which are
set lower than either the Start Speed or the Stop Speed do not require any
adjustment in Start speed or Stop Speed.
The default values of the Start and Stop speeds have been set to perform well for
nearly all normal applications. On occasion, it may be useful to change the speeds
from the default settings. This section explains the considerations involved.
If a high Top Speed and low acceleration are combined with a very short move, the
syringe speed may not reach the programmed Top Speed and the profile of Figure
8-2 will result.
The back-pressure of a fluid in motion is greater at the syringe than at the delivery
point. The difference between the two is the pressure rise. The pressure rise can
exceed several hundred psi (tens of atmospheres) in some cases. Here are some
of the factors which contribute to the pressure rise and consequent back-pressure:
Factor Effect
Path diameter Pressure varies as fourth power of diameter
Path length Pressure varies directly with length
Fluid velocity Pressure varies with square of velocity
Temperature Temperature changes viscosity, which changes back-
pressure. Over 5:1 variations are possible.
All these effects are cumulative. Bar far the most sensitive is the path diameter.
An increase of just 19% in inside diameter of the tubing or an orifice can drop the
back pressure by as much as 50%. One source of gradually increasing back-
pressure is too much torque on the fittings used with the valve. The valve requires
Teflon® washers to seal the fitting-to-valve connection. If the fittings are tightened
too much, the pressure of the connection will cause the Teflon to “cold flow” in a
way that reduces the size of the hole in the washer. In extreme cases, the hole can
shrink to a pin-hole.
Higher fluid velocities have two reinforcing effects: (1) the pressure increases as the
square, and (2) the available motor power decreases with increases in speed. If
syringe overloads are occurring, small reductions in Top Speed can produce major
improvements in system reliability.
If a move fails to begin, the problem may be too high a Start Speed or a blocked
fluid path. In general, the default value of Start Speed is a good compromise.
If the pump generates frequent “Z” errors (error #26), the cause may be too high a
Stop Speed. An abrupt stop from too high a speed may cause syringe position to
become corrupted, resulting in the error message. In nearly all cases, no value of
programmed deceleration will result in this problem.
When adjusting the speeds, consider the trade-offs and consequences. Most
problems are the result of too high a Top Speed or too high a Stop Speed. The Top
Speed must be set to accommodate the dimensions of the fluid path, the fluid
viscosity, and the decreasing thrust force as speed increases.
The number of times a given event has occurred can be determined with the
Software Counter (see Section 4.9.1). In the example below, the number of times
a programmed dispensing sequence has occurred is counted so a controller can
query the pump to determine the number of dispenses which have occurred since
the program was initiated.
In the example above, the program begins by setting the counter to zero. the
syringe is refilled each time the syringe position is too small to do another dispense.
After each dispense, the counter is incremented by “1'. The counter can be queried
at any time to read how many dispenses have occurred. The program string is:
k0:BIA48000O:Ay<9600BD9600k+1JA
The conversion of syringe volume to steps (syringe increments) can be easily done
using a proportion.
Set up proportion:
steps required = 250 µR
48,000 5000 µR
Solve for desired quantity
This proportion can be used to find speeds if the “steps required” is replaced with
“steps per second” and the “desired volume” is replaced with “volume per second”.
User Inputs and User Outputs (I/O) can be used to preform a variety of interfacing
tasks. In stand-alone operation, without a serial communications controller, the I/O
can be used to trigger program operations and to indicate operational status. In
multiple-pump operations, the I/O can be used to coordinate and synchronize the
operations of the pumps. One special case is the synthesis of continuos fluid flow
using two pumps. This section provides some interfacing techniques to aid in using
the pump I/O.
While the input is high, the test for input #3 to be low will fail and the jump to
“T” will not be taken. The next command, “Jr” is therefor executed. The “Jr”
command send the program execution back to the “r” label and the test will
be repeated. When input #3 goes low, the jump to label “T” will be taken.
Label “T” then leads to the next instruction in the program.
Figure 8-3 shows the wire connections for a handshake. It is assumed the
necessary ground connection between the pumps is present. Each pump has one
output connected to and input on the other pump. This allows each pump to send
a signal to the other pump. The sequence of operations is illustrated in the voltage-
time diagram of Figure 8-3.
First Handshake:
At the beginning, both outputs are idle at the high level.
At (1), pump 2 sets its Output #2 low to signal pump 1 to begin its next operation.
At (2), pump 1 sees the signal and sets its Output 2 low to indicate “signal seen”.
At (3), pump 2 sees the response from pump 1and resets its output back high.
At (4), pump 1 sees the return high from pump 2 and sets its output back high.
After (4), pump 1 begins its next operation and both outputs are in the initial state.
Second handshake:
The handshake command strings are the same for each pump. Any of the User
Inputs and Outputs could have been used. The handshake command strings for
the preceding example are as follows.
Receiving a handshake:
:C label “C”
i2D if input is low, go to label “D”
JC if not low, go to label “C”
:D input is low
u2 set Output #2 low to say “signal is seen”
:E label “E”
i2E if input is still low, check it again
U2 input went high, so set out back to high
One special case of a handshake is the handshake dispense, described in Section
8.3.3. This command provides an automatic handshake sequence.
When a continuous fluid flow is required, the handshake dispense commands may
be used to synthesize the flow using two pumps. The resulting flow is continuous,
with no gaps in delivery. The handshake connections and signal sequences
explained in Section 8.3.2 are used, but the handshaking is an inherent part of the
instructions and does not require any programing as described in the preceding
section
The input ports of both pumps are connected with a “T” fitting so a single source line
is used. The output ports of both pumps are connected together with a “T”
connection to sum the two outputs into a single delivery line.
As one pump is dispensing, the other pump is refilling. When pump A approaches
the end of its dispense, it signals pump “B” to begin to dispense. W hile pump B is
dispensing, pump A refills itself. The handshake signals which tell each pump to
begin its dispense are generated by the dispensing pump just prior to finishing a
dispense. As one pump is finishing a dispense, the other begins and the fluid flow
is thus continuous.
When this instruction is encountered, the pump begins testing User Input #n for a
low level. When a low level is seen, a dispense begins. The dispense is always
from the current syringe position to zero (the full-dispense position). As the
dispense nears the zero position, the User Output #n is set low just before the
dispense ends. This is used as advance notice to the other pump to start its own
handshake dispense. All these I/O operations are automatic.
To begin a handshake dispense without an external trigger signal, use the syntax
“h-n”. This is useful to start a handshake dispense operation or to resume one that
has been stopped.
The Digital Voltmeter (DVM) input can be used as a selector switch. If repeatable
voltage levels can be applied to the DVM input, a series of tests can be made to
determine what the program should do next. These levels can be generated from
a digital-to-analog converter or from a series of resistors soldered around a selector
switch to form a tapped voltage divider. In the following command sequence, each
test level is chosen to be half-way between the actual voltage levels, not at the
voltage levels. This is done for noise immunity.
The snapshot feature uses the User Input #3. Each time the User Input #3
transitions from high-to-low, the current location of the syringe is stored in memory.
The snapshot memory retains the positions for the two most recent input
transitions. The syringe positions for these two points can be queried at any time
with the “?29" query. This feature is always available regardless of the input #3
operating mode.
The snapshot feature is very useful for titrations using optical detection, where the
detector outputs a double pulse and the two positions at the time of the pulses must
be known. It is also useful in any application in which the amount to be dispensed
is unknown in advance and must ve determined on-the-fly during the process.
The V6 includes three digital inputs, three digital outputs, and a Digital Voltmeter
input as part of the standard unit. For those applications which need more I/O or
different I/O, an Expansion I/O port is also included. The Expansion I/O port is a
synchronous serial port which can increase the I/O by either one byte (eight bits of
input + eight bits of output) or two bytes (16 bits of input + 16 bits of output). Kloehn
makes an I/O Expander Board (P/N 50765) which implements the two-byte
expansion.
The 50765 I/O Expander Board is an example of the I/O increase possible with the
Expansion port. The 50765 provides 16 extra inputs which can be operated as two
bytes or bit-by-bit, and 16 extra outputs, each of which can switch up to 250
milliamperes at up to 40 Vdc. These can be used to control solenoid valves, relays,
indicator lights, or other motors.
sn,m Send two bytes from the User Serial expansion Port, byte "m" first and then
byte "n" second. Both bytes are sent MSB (most significant bit) first. The
values of "n" and "m" are expressed as the ASCII base 10 representation of
the binary bytes.
(n: 0...255, m: 0...255, @n) [n/a]
Un Turn the user parallel output "n" ON (low logic level) or turn on a serial I/O
port output bit.
(n: 11...18 = serial byte 1, bit 1...8 of the serial expansion port
21...28 = serial byte 2, bit 1...8 of the serial expansion port) [n/a]
un Turn the user parallel output "n" OFF (open-circuited) or turn off a serial I/O
port output bit.
(n: 11...18 = serial byte 1, bit 1...8 of the serial expansion port
21...28 = serial byte 2, bit 1...8 of the serial expansion port) [n/a]
The inputs are read by these commands, which are executed immediately upon
receipt and cannot be included in a program:
?10 Query the value of the first byte received from the Expansion I/O port input.
An input byte is shifted in (MSB first), and the numerical value of the first
input byte is reported in a base 10 ASCII format. The value uses a negative
logic convention (low level = 1, high level = 0). In 1-byte mode, this is the
only byte. In 2-byte mode, this is the first of two bytes.
?20 Query the value of the second byte received from the Expansion I/O port
input in 2-byte mode. Two input bytes are shifted in (MSB first), and the
numerical value of the second input byte is reported in a base 10 ASCII
format. The value uses a negative logic convention (low level = 1, high level
= 0). This instruction is not valid in 1-byte mode.
?n Query the state of the Expansion I/O port input bit designated by "n". A
serial byte is input (MSB first), and the state of the designated bit is reported
as an ASCII "0" if the bit is "false" (high input logic level) or an ASCII "1" if
"true" (low input logic level).
(n: 11...18 bit 1...8 in Expansion input byte #1
21...28 bit 1...8 in Expansion input byte #2)
In the circuit of Figure 8-4, the user inputs are labeled with their equivalent binary
weights, with “128" as the most significant bit. The inputs are shown with pull-up
resistors (4.7K) and series input protection resistors (100K). These resistors are
highly recommended. This circuit will provide an extra eight bits of input in the one-
byte mode (see Section 4.6).
If the two time delays are omitted to obtain the maximum pulse rate, the resulting
pulse rate is about 400 pulses per second.
In some applications, one of several selections must be made via a selector switch
or PLC logic lines. The most economical approach is to encode the inputs as binary
numbers. This section describes a way to program a binary selection tree. This is
a way of making the input bits act as if they have a binary weighting (e.g., 1, 2, 4,
etc.). This illustration uses all three inputs as a seven-way selector. The Expansion
I/O could also have been used to input the bits with the same instructions (see
Section 8.3.6 for Expansion I/O commands). Figure 8-5 shows a flow chart of the
algorithm.
External LED (light-emitting diode) indicators can be driven from the User Outputs.
The diode anode should be connected to +5Vdc through a 470-ohm resistor.
The LED cathode is connected to the output. When the output is turned “on”, the
output level will go low and turn on the LED. The output level will still be low enough
to drive other external logic. A “super-bright” LED should be used.
An output could also drive the input to an opto-isolator. The internal opto-isolator
LED should be connected as described above. The drive current will be about eight
milliamps.
The Error Out output can also drive an LED. This output should be connected as
described above, or the anode of the LED can be connected to the Error Bias pin,
which provides an internal resistor to +5Vdc.
The User Outputs 1, 2, and 3 are suitable for driving a variety of loads. The open-
drain MOSFET outputs can drive up to 170 milliamps (mA) and withstand voltages
to 12 Volts greater than the pump power supply voltage, up to a peak of 50 Vdc.
Each output includes integral protection against inductive turn-off transients, as
shown in Figure 8-6. The zener diode provides about 13 Volts across and inductive
load during the current decay to speed up the inductive load turn-off. Typical
inductive loads are solenoids , solenoid valves, relays, and small DC motors.
An active limit input is a low level, typically below 0.8 Vdc. The syringe will perform
a deceleration and stop, and a query of the input level will report an active (“on”)
input while the input is low.
While the input is low, the syringe can be moved in the aspirate direction, but not
in the dispense direction. The single exception to this rule is if the flags (see
Section 4.9.4) are used to override the input after it has stopped. This would be
done in a consecutive series of “fill-to-signal” operations without a syringe refill. If
this is done, the test-and-jump on syringe position instruction should be used with
each dispense to ensure there will not be an attempt to dispense more than is
remaining in the syringe.
In a program, when the limit input goes active, the dispense is terminated but the
program is not terminated. The instructions following the dispense instruction will
continue to execute as if the dispense had completed normally. This allows a
“dispense to condition” to be placed into a program and run continuously without
direct supervision. Thus, applications which use the pump in a “standalone” mode
without a controller or with only minimal monitoring can be implemented.
Recall that inputs can be set or queried by remote command even while a program
is running without conflicting with the program.
This section describes the low voltage condition detection, the selection of power
supplies, and good power distribution wiring practices.
The power supply capacity should be consistent with the specifications of Section
11.3 of this manual. If a Kloehn power supply is used, these specifications will be
met. One Kloehn P/N 17732 power supply has sufficient capacity to power two
VersaPump 6 devices.
An output capacity of 40 watts at 24 Vdc is considered a practical value for a one-
pump power supply for normal pump operation. The normal idle power
consumption is about 11 watts. The 40 watt rating allows for the maximum power
required during syringe and valve moves, with a small reserve for reliability.
For multiple pumps on one supply, the overall system operation should be
considered. If there are N pumps, of which only M units will be making a syringe or
valve move at the same time, then the average power capacity of the supply should
be at least P = 40M + 11(N-M) watts. The pump automatically turns on the valve
motor for moves and then turns it off when not moving. See section 8.2 for
additional multiple-pump system wiring considerations.
At power-up, all the valve motors will make simultaneous valve calibration moves,
demanding about 1.1 Adc each. To allow for the valve calibration moves, the power
supply should have a peak power capacity of P = 40N watts. The peak capacity is
often not specified directly. It can be calculated from the peak current specification
(Ipk) as P = 40N(Ipk). If this results in an excessively large power rating for the
normal system operation, the power-up initialize inhibit parameter can be set to
prevent the power up moves (see Section 4.6).
In-rush current at initial power-up is the idle current plus the current required to
charge the nominal 470 uF capacitance at each pump power input. For almost any
power supply, this current will be well within its capacity.
There are three general types of power supply: unregulated DC, linear regulator
types, and switching regulator types. Each has different selection considerations.
The unregulated supply is the cheapest and simplest. Its output voltage will
typically vary about 5% to 20% from no-load to rated load. In addition, the output
will vary in proportion to the input line voltage. Since the driver is specified for
24Vdc ± 10%, it is not recommended for use with the V6 pumps.
The linear regulator supply usually has a current limiting feature which must be set
high enough to handle any current transients generated by the syringe drive. If the
current limit is too low, erratic pump operation will result with no obvious cause.
A switching power supply is the preferred choice. It offers higher efficiency, lower
heat generation, and a well-filtered output. Some switching power supplies have
a minimum load current requirement. Since the pump can idle as low as 70
milliamps, the supply should be rated for a minimum load current equal to the
minimum total system idle current. A ballast resistor may be added across the
supply output to guarantee the minimum load requirement of the supply.
The use of an output filter in each line can reduce radiated and conducted EMI.
The simplest filter consists of a series inductance of about 10 uH (rated at 2.5
amps) inserted in-line with the positive power wire near to the pump.
The J1 interface connector has two power input pins and two ground pins. Good
wiring practice uses both opposing pins for the positive lead and both opposing
pins for the ground lead. Redundant pins ensure reliable power connections.
If communications upsets occur during ESD
testing when high-voltage arcs are injected into
either the controller or the syringe drive,
insertion of a ferrite common-mode choke with
good high-frequency impedance may eliminate
the problem. The power and communications
lines should be looped two or three times
through a ferrite toroid having an outside
diameter of about one inch.
Improved EMC performance can often be
realized by grounding the pump faceplate. The
black anodize surface coating should be
removed from around a lower mounting hole
and a thick wire should be used to connect the pump to a nearby ground plane.
Syringe drives should not share the same power leads as large, noisy electrical
loads such as motors and large solenoids. While the syringe design contains
filtering to reduce susceptibility to electrical noise conducted via the power supply
wires, large current or voltage transients could be harmful to the pump.
If the pump supply voltage decreases below the internal reference minimum (20V),
a "Low Voltage" error condition is generated. While the voltage remains below the
minimum, valve and syringe moves are inhibited. For supply voltages down to
about 8 Vdc, the internal control electronics and memory are not affected and other
instructions, such as I/O operations and queries, will still operate normally after the
low voltage error message has been reported or cleared.
Some power supplies will turn on gradually. If the rise time of the supply is slow
enough, the internal computer may generate a "Low Voltage" error when the pump
powers up. This will not cause any operational problems after the power has
stabilized and communications has been established. The error message will have
to be cleared before any other commands can be executed. The message can be
cleared by querying the pump status.
If low voltage errors persist when a voltmeter check of the power supply appears to
show a proper voltage, the problem may be transients on the power supply leads.
Transients may be induced by wiring which passes close to other high-current
electrical loads, by current-limiting operation of linear supplies, by transients passed
through the power supply from the ac power source used by the supply, by using
a wire size which is too small for the length, or by insufficient power supply capacity.
The supply should be able to absorb a 4 amp transient of 2 msec.
The V6 pump draws a current which depends upon the power supply voltage, the
idle logic current, and the motor currents. The current consumption can be
minimized in some applications through the pump programming.
The supply voltage is inversely proportional the current consumption. This is
because the pump is a constant power device. As the voltage increases, the
current decreases so the product of the two will remain approximately constant.
The capacity of a battery for portable operation is thus best estimated using a watt-
hour rating (watt-hours = ampere-hours x volts).
The motor current is the sum of the valve motor and syringe motor demands. The
valve motor draws current during a valve move, and automatically turns off when a
valve ends. The valve motor automatically turns on at the start of a valve move.
The Syringe motor normally idles at half-power. When a syringe move begins, the
syringe switches to full-power operation for the duration of the move. When the
move ends, the power automatically switches back to half-power. If the syringe is
not required to hold a significant back-pressure, the syringe motor can be turned
off at the completion of each move, thereby reducing idle power to the logic idle
power alone. The logic idle power alone is typically about 2 Watts.
It is important to note that as batteries age or approach the limits of their capacity,
the internal impedance usually rises significantly. Because a large, 2 millisecond
transient current can be drawn at the beginning of a syringe move, a low battery
condition can generate a low-voltage error. The tolerance to this can be increased
by adding a filter capacitor at the pump power input terminals. A value of several
thousand microfarads may be required in some applications.
The pump has been designed with a large operating ambient temperature margin.
However, it is prudent to allow air venting for an enclosure to improve the system
reliability. In many applications, a cooling air inlet at the bottom of an enclosure and
a hot air vent near the top can provide adequate ventilation. Only when operating
in ambient temperatures near the maximum would any kind of forced air cooing
become desirable.
The syringe carriage mechanism and its manifold are considered part of the pump
itself and are not individually replaceable items. The replaceable items are the
syringes, valves, and washers.
11.1 ENVIRONMENTAL
Temperature
Operating -25 to 55 °C (-13 to 131 °F)
Storage -25 to 85 °C (-13 to 185 °F)
Humidity 5 to 95% RH, non-condensing
Altitude
Operating 10,000 feet pressure altitude, maximum
Non-operating 40,000 feet pressure altitude, maximum
11.2 PHYSICAL
Height 10.00 inches 254 mm
Width 2.55 inches 64.77 mm
Depth 4.75 inches 181 mm
Weight 5.07 pounds 2.30 Kg
11.3 POWER
Voltage 20 to 30 Vdc, 24 Vdc nominal
Current (at 24 Vdc)
Idle, syringe on 0.42 to 0.48 Adc
Idle, syringe off 0.08 Adc
Syringe move 1.0 Adc, up to 4A peak for 2 msec at start of move
Turn-on surge 2.5 A peak, 15 msec
Power consumption
Idle, syringe off 2 Watts, max.
Idle, syringe on 11 Watts, max
Syringe in motion 36 Watts, max.
11.4.1 Resolution
The syringe axis is available in two resolutions: 24000 steps and 48000 steps for
the same 6 cm stroke length. The resolution is predicated on mechanical design
and is not electronically “inflated”. Which of the two resolutions is applicable
depends upon which model is purchased.
11.4.2 Accuracy
Accuracy is described by two parameters: accuracy and precision. For both, the
value given is expressed as a percentage of the full stroke of the syringe. Accuracy
measures how closely a dispensed amount of fluid corresponds to the ideal
programmed value. Precision describes the ability of the drive to deliver the same
11.4.3 Speed
Syringe speeds are measures in steps per second. The definition of a step is one
increment of motion.
The value of force should be the force listed in the next table for the speed used,
minus the total friction force for eight syringes, then divided by eight. For example,
consider 2.5 mL syringes running at 6000 steps/sec on a 48K pump. The maximum
force per syringe would be about (115 - 8 x 4) / 8 = 10.4 pounds. The pressure
capability would be limited to about 160 psi.
It should be noted that the linear velocity of the 24K model is twice the linear
velocity of the 48K model for the same value of steps/sec. Thus a speed of 8000
on the 48K model is equivalent in fluid flow to a speed of 4000 on the 24K model.
The valve axis controls a user-selected valve mounted to the faceplate of the
pump. The valve axis is configurable for different types of valves Thus a single
model of the VersaPump 6 can accommodate any of the available valve types
without modification. This is a feature of all Kloehn syringe pumps. Distribution and
non-distribution types are available with from two to eight ports.
11.6 COMMUNICATIONS
The VersaPump 6 syringe drive has two serial communications protocols: OEM
and DT. The two protocols are compatible with the corresponding Cavro protocols.
In each case, the pump acts as a slave device. It cannot initiate communications,
but can only respond to commands from a controlling device. All communications
are serial, half-duplex data transfers. The RS232 and RS485 interfaces are
supported.
For both standards, the communications parameters are:
All communications use ASCII characters for both commands and responses. All
numbers are expressed as ASCII decimal numbers. The two protocols, DT and
OEM, are explained in Section 6.3.
The following subsections describe the User Inputs/Outputs (User I/O) available on
the 50300 Syringe Drive Unit. There are 3 parallel digital outputs, 3 parallel digital
inputs, one digital voltmeter input, and a serial I/O expansion port for adding
additional I/O externally.
The inputs may be used to control pump operation, or may be sampled at any time
by an external controller. One input may be programmed to act as an external
dispense “stop” command. One input may be used to take syringe position
“snapshots” on-the-fly for later interrogation.
Logic compatibility: TTL, 5V CMOS
Input voltage, Maximum: 100 V peak for 8.3 msec maximum
+30 Vdc to -25 Vdc, continuous, maximum
Logic "true" level: < 1.0 V
Logic "false" level: > 3.5 V or open circuit
There is one digital voltmeter input. This input performs an 8-bit analog-to-digital
conversion. An anti-aliasing input filter is included. See figure 2-2 for the input
equivalent circuit.
The voltmeter specifications are:
The Serial I/O Expansion Port (IOX) provides a means to expand the number of
external inputs and outputs of the pump. An I/O Expander board (P/N 50765) is
available to add 16 additional inputs and 16 additional outputs. Each of the
expander outputs can sink up to 250 mA at voltages to 40 Vdc.
The IOX has one 6-pin interface which simultaneously shifts output data out from
the port, input data into the port, synchronous clock pulses out from the port, and
provides a timing strobe signal output. The strobe output is active low during a data
I/O operation. +5V and ground, for powering external I/O circuits, are available on
the connector.
There are two modes of operation: 1-byte and 2-byte. See section 3.5.4 for details
of the serial port operation. See figure 11-2 for 2-byte waveform timing figure 11-1
for 1-byte waveform timing. The clock edge-to-data signal timing is the same for
both 1-byte and 2-byte operating modes.
Inputs:
Logic "0" +3.5 V to +5.0 V
Logic "1" -0.3 V to +1 V
Input current < 10 :A
Outputs:
Logic "0" < 0.4 V at 1.6 mA sink
Logic "1" > 4.2 V at 0.8 mA source
+5V output: 100 mA dc to load, maximum
Clock:
Quiescent level Logic "0"
Active edges Positive-going
Frequency 115.2 KHz
Data Strobe:
Quiescent level Logic "1"
Data hold time 0 sec
Data transfer cycle time (strobe pulse width):
1-byte mode 93 ± 4 :sec
2-byte mode 187 to 262 :sec
This port uses the industry standard “SPI” interface in “Mode 0,0" as a bus master.
There are numerous devices, ranging from microprocessors to analog/digital
conversion chips which use this standard. This interface is compatible with most
TTL and CMOS shift register chips.
The Error LED output provides drive for a light-emitting diode (LED) or external logic
whenever an error condition exists within the pump. See Section 5 for a list and
explanations of error conditions. Refer to Section 2.2.2 for Error output details.
Error +: internal +5 Vdc supply, internally current limited through 330 ohms
Error -: 5 ohm resistance to ground when in ON (error) condition,
open-circuit (> 1 Mohm) when in OFF (normal no-error) condition
A.1 COMMANDS
The commands are presented in alphabetical order. The special notations are explained
below:
En (i) program save (n: 1...10 with std NVM, 1...99 with exp NVM) {4.4.1}
en (i) program erase (n: 1...10 with std NVM, 1...99 with exp NVM) {4.4.1}
F (i) query buffer status {4.7}
fnp (p) if flag #n is set, then clear it and jump to label "p"
(n: 1...8 p: a...z, A...Z) {4.9.2}
fn-p (p) if flag #n is clear, then jump to label "p" (n: 1...8 p: a...z, A...Z) {4.9.2}
i>np (p) if Digital Voltmeter input is less than "n", then jump to label "p"
(n: 0...255, @ p: a...z, A...Z) {4.3.3}
i<np (p) if analog (digital voltmeter) input is greater than "n", then jump to label "p"
(n: 0...255, @ p: a...z, A...Z) {4.3.3}
k-n subtract "n" from the software counter (n: 0...65535, @) {4.9.1}
k^n exchange the contents of counter memory “n” with the active counter
(n: 1...8) {4.9.1}
k<np (p) if the software counter is less than "n", then jump to label "p"
(n: 0...65535, @ p: a...z, A...Z) {4.9.1}
k=np (p) if the software counter is equal to "n", then jump to label "p"
(n: 0...65535, @ p: a...z, A-Z) {4.9.1}
k>np (p) if the software counter is greater than "n", then jump to label "p"
(n: 0-65535, @ p: a...z, A...Z) {4.9.1}
Ln set syringe acceleration slope, Hz/sec = 2500 x "n" (n: 1...20, @) {4.1.2}
ln set syringe deceleration slope, Hz/sec = 2500 x "n" (n: 1...20, @) {4.1.2}
mn turn motors on/off (n: 0=syringe motor off, 1=syringe motor on) {4.9.5}
s<np (p) if serial input byte value is less than "n", then jump to label "p"
(n: 0...255, @ p: a...z, A...Z) {4.3.3}
s>np (p) if serial input byte value is greater than "n", then jump to label "p"
(n: 0...255, @ p: a...z, A...Z) {4.3.3}
U#n (i) turn on User Output bit “n” immediately (set to low) (n: 1...3) {4.3.1}
un turn off an output bit; "off"
(n: 1...3 = User Inputs 1...3
11...18 = Expansion I/O output byte 1, bits 1...8
21...28 = Expansion I/O output byte 2, bits 1...8
p: a...z, A...Z) {4.3.1}
u#n (i) turn off User Output bit “n” immediately (set to high) (n: 1...3) {4.3.1}
Wn initialize syringe and valve (n: 4=move valve to port 1, then move syringe
to "soft limit"; 5=save current syringe position as zero) {4.1.3}
X (i) repeat last command string; does not apply to queries and configuration
commands {4.9.6}
x? query the error number (see Section 5.1) last trapped {4.8.3}
y<np (o) if syringe position is less than “n”, then go to label “p”
(n: 0...48000 or 24000 p=a...z, A...Z) {4.4.3}
y=np (o) if syringe position equals “n”, then go to label “p”
(n: 0...48000 or 24000 p=a...z, A...Z) {4.4.3}
y>np (o) if syringe position greater than “n”, then go to label “p”
(n: 0...48000 or 24000 p=a...z, A...Z) {4.4.3}
znp trap error #n and jump to a user error handler routine at program label “p”
(n: 1...26, p = a...z, A...Z) {4.8.1}
?4 (i) query the User Input 1 status, reply "1" if at low level {4.3.2}
?5 (i) query the User Input 2 status, reply "1" if at low level {4.3.2}
?6 (i) query the User Input 3 status, reply "1" if at low level {4.3.2}
?7 (i) query the User Analog Input voltage, volts = reply x 0.02 {4.3.2}
?9 (i) query the number of unused bytes in NVM {4.4.1}
?10 (i) query the numerical value of the serial I/O input byte, or of byte 1 if in 2-
byte mode {4.3.2}
?n (i) query the status of a serial I/O input bit, report "1" if at low level
(n: 11...18 = Expansion I/O input byte 1, bits 1...8
21...28 = Expansion I/O input byte 2, bits 1...8
p: a...z, A...Z) {4.3.2}
?19 (i) query NVM, reply list of program numbers in NVM {4.4.1 }
?20 (i) query numerical value of serial I/O input byte 2 {4.3.2}
?29 (i) query contents of the syringe position snapshot memory {8.3.5}
?30 (i) query the acceleration followed by the deceleration values {4.1.4}
! (i) store current syringe speed and backlash values in NVM {4.1.2}
~? (i) query command operating mode (reply: "-1" if in configuration mode, else
reply with syringe position) {4.7}
~A (~a) (i) query the autostart program number {4.6}
~An (~an) (i) set autostart program number to "n" (n: 0...10, 0=none) [0] {4.6}
~B (~b) (i) query the communications baud rate setting (see ~Bn) {4.6}
~Bn (~bn) (i) set communications baud rate [3] {4.6}
~Hn (~hn) (i) set the HOME button mode (n: 0=enabled, 1=disabled) [0] {4.6}
~L (~l) (i) query User Input 3 operating mode (reply: 0=normal "logic", 1=dispense
"limit") {4.6}
~Ln (~ln) (i) set User Input 3 mode (n: 0=normal "logic", 1=dispense "limit") [0] {4.6}
~Pn (~pn) (i) set communications protocol (n: 1=DT, 2=OEM) [0] {4.6}
~S (~s) (i) query serial I/O mode (reply: 1=1-byte, 2=2-byte) {4.6}
~Sn (~sn) (i) set Expansion I/O mode to 1-byte or 2-byte transfers
(n: 1=1-byte, 2=2-byte) [1] {4.6}
This section lists the general and indirect variables which can be used with the “@n” syntax
for command argument values. See Section 4.5 for details. General variables are set
before a program runs. Indirect variables use values derived by the pump.
@1 Numerical value of Expansion input byte #1, read as a two-digit packed BCD
number (0...99)
@10 most recently-sent value of the byte #1 sent with the sn,m command
Instruction scaled
An, an move syringe to absolute position yes
cn set stopping speed yes
Dn, dn dispense, relative to current position yes
g...Gn repeat loop no
inp if serial input bit true, jump to "p" no
i>np if analog input > "n", jump to "p" no
i<np if analog input < "n", jump to "p" no
jn do program #n, then return no
Kn set number of backlash steps yes
kn set software counter = "n" no
Each status byte has two forms: busy and ready. "Busy" means the device is executing
a command or program. "Ready" indicates the device is ready to receive another
command. The status messages are:
ASCII Error Decimal binary Status
busy ready . # . busy ready 76543210
Bit 5 of the status byte, denoted by "X" above, is set to "0" if the pump is busy, and is set
to a "1" if the pump is not busy. The Error # is the error designator “n” used by the error
trap command “xnp”.
This section presents two typical driver functions: send and receive a string, and test
for busy status. These functions have been written and tested in the QBasic syntax as
supplied with DOS 6.x [TM]. The structures can be easily converted to Visual Basic or
ANSI C. The "GOTO" statements can be used, or a more structured style can be
employed.
The communications channel for the syringe drive is opened by the statement:
OPEN "COM2: 9600, N, 8, 1, CS0, DS0, CD0, RS" FOR RANDOM AS #1
When the program ends, the statement below must be used to close the channel.
CLOSE #1
The preceding two QBasic statements will need to be developed as function calls in
ANSI C or Visual Basic if an equivalent library function is not available. Windows
programs should use the Windows Applications Programming Interface (API) for I/O
handling whenever possible. The driver code presented in this manual is intended as a
sample of driver structures to facilitate the development of user drivers.
This module checks to see if the syringe drive is busy or is ready for another
command. It returns to the calling routine when the status is "ready". Note that it
uses the communications module "GetPump" from Section 6.7.1.
'************** UTILITY MODULE: Check Pump for Busy Status************
' wait for pump to return a "not busy" status
' no entry parameters, no return value
PumpBusy:
pump$ = "/1Q" 'set up status query string
GOSUB GetPump 'send status query
IF PumpErr$ <> "" THEN GOTO pb2 'if pump status error, exit routine
IF status$ = "@" THEN GOTO PumpBusy 'else check until "not busy"
pb2:
RETURN
When writing an ANSI C version of the preceding drivers, the statement "PRINT #1,
Pump$" in the listing below must be replaced with a function call which handles the
character-by-character details of string transmission. Also, the "In$ = INPUT$(LOC(1),
#1)" statement requires a function call to handle the reception and construction of the
reply string.
This module checks to see if the syringe drive is busy or is ready for another command.
It returns to the calling routine when the status is "ready". Note that it uses the
communications module "GetPump" from Section 6.7.1.