12.1 RS communication protocol for LAMBDA PERISTALTIC and SYRINGE PUMPS, powder DOSER and MASSFLOW gas flow regulator
12.1.1 Format of data sent by the PC to the pump and back
Data sent by the PC: #ss mm a ddd qs c
Data sent back by the pump: <mm ss a ddd qs c
Where,
# | is the first sign of a command sent by PC |
< | is the first sign of a message sent by pump |
ss | is the address of the pump |
mm | is the address of the PC |
a | is the command for the sense of rotation: |
r | for clockwise (cw) rotation |
l | for counter-clockwise (ccw) rotation |
ddd | is the speed of rotation (3 ASCII numbers from 0 to 9; sent from the highest order digit to the lowest order digit) |
qs | is the control sum in HEX format (2 ASCII signs of the type 0…9ABCDEF) |
c | is the end sign cr (carriage return) The pump will fulfill the task and block any manual command on the pump front panel. |
12.1.2. Commands not containing data
# ss mm g qs c | activates the local command of the pump |
# ss mm s qs c | the pump is stopped |
# ss mm G qs c | to send pump data to the PC |
12.1.3 Checksum control
The PC sends: | #0201r123EEcr |
The control sum (checksum) qs is made in the following way (only the last byte (2 ASCII characters of the type 0…9ABCDEF) is taken):
# | 0 | 2 | 0 | 1 | r | 1 | 2 | 3 | EE (last byte) | cr |
23 h | +30h | +32h | +30h | +31h | +72h | +31h | +32h | +33h | =1EEh | 0Dh |
12.1.4 Format of the data transmission
Speed: | 2400 Bd (Baud) 8 data bits, odd parity, 1 stop bit |
Address of the PC: 01
Address of the pump: 02
The PC sends: #0201r123EEcr
The pump will rotate cw at the speed of 123
The PC sends: #0201G2Dcr
The answer of the pump: <0102r12307cr
The PC sends: #0201l123E8cr
The pump will rotate ccw at the speed of 123. (not for DOSER and MASSFLOW)
The PC sends: #0201s59cr
The pump stops.
The PC sends: #0201g4Dcr
The pump will go to the local command (pump front panel is activated).
12.3 How to set the pump address?
To look up/modify the instrument address, disconnect the LAMBDA peristaltic pump from mains.
Press the ◄Ι► button continuously and at the same time connect the LAMBDA peristaltic pump to the mains again. The message “A” and two numbers will appear on the display. This number from 00 to 99 is the current address of the peristaltic pump.
To change the address press the buttons Λ Λ Λ under the display until the desired number is obtained.
To confirm and save the address, press the ON/OFF button.
12.4 RS-connection scheme
No. | Color | Description |
1 | yellow | (+) input remote speed control 0-10V *) |
2 | grey | step signal from stepping motor (0 and 12V) |
3 | green | earth, 0 V |
4 | brown | + 12 V |
5 | white | (+) input remote ON/OFF; 0V = ON, 3–12 V = OFF (this logic can be inversed on demand) |
6 | pink | earth, ground (GND) |
7 | red | RS 485 B (-) |
8 | blue | RS 485 A (+) |
*) (zero line connected to the contact no. 3)
12.5 RS communication protocol for the on-board INTEGRATOR (optional)
12.5.1 Communication between the PC and the INTEGRATOR of the LAMBDA instrument
From the PC to the INTEGRATOR:
#ss mm z qs c
From the INTEGRATOR to the PC:
<mm ss = qs c | confirmation of the reception of a command |
<mm ss dddd qs c | sending of the requested data |
where,
# | is the first sign of a command sent by the MASTER (PC) |
< | is the first sign of a message sent by the SLAVE (INTEGRATOR) |
ss | is the address of the subordinate station (address of the instrument with integrated INTEGRATOR) |
mm | is the address of the commanding station (PC) |
z | is a command (see below): small letters indicate a command, capital letters request data transfer from the subordinate station |
= | confirmation of reception |
aa | new address of the subordinate station (ss) (two numbers and possibly other ASCII characters A B C D E F) |
dddd | transferred data (values are two bytes in hexadecimal form. Single bytes are transformed into two ASCII characters 0,..,9,A,B,C,D,E,F) |
qs | is the control sum (obtained by the addition modulo 256 of binary values of all preceding characters including the leading sign) in HEX format (2 ASCII signs of the type 0…9ABCDEF) |
c | is the end sign cr (carriage return) |
12.5.2 Commands for the INTEGRATOR
n | reset (sets the INTEGRATOR to zero) |
i | start of integration |
e | stop of integration |
l | sends the integrated value |
N | sends the integrated value and sets the integrator to zero |
L | sends the integrated value ccw rotation |
R | sends the integrated value of cw rotation |
12.5.3 Examples
Address of the PC: | 01 |
Address of the instrument with on-board INTEGRATOR: | 02 |
The PC sends: | #0201I2Fcr |
The control sum (checksum) qs is made in the following way (only the last byte (2 ASCII characters of the type 0…9ABCDEF) is taken):
# | 0 | 2 | 0 | 1 | I | 2F (last byte) | cr |
23h | +30h | +32h | +30h | +31h | +49h | =12Fh | 0Dh |
The PC sends: | #0201i4Fcr |
i.e. in hexadecimal form: | 23h 30h 32h 30h 31h 69h 34h 46h 0Dh |
This means: For a subordinate station (SLAVE) with address 02 from commanding station (MASTER) with address 01
Start of integration
The control sum is 14Fh (last byte: 4F); end of message cr (carriage return)
The INTEGRATOR answers: | <0102=3Ccr |
The PC sends: | #0201N34cr |
The INTEGRATOR answers: and resets to zero | <0102N03C225cr (integrated value is 03C2h) |
The PC sends: | #0201e4Bcr |
The integration will be stopped and the command will be confirmed. | |
The INTEGRATOR answers: | <0102=3Ccr
|