16 ENGINEERING DOCUMENTATION
_____________________________________________________________________________________________
10 Cooperation with computer or printer
In indicators equipped with one serial RS232C (RS485) interface there are two
possible modes of interface work:
Standard mode
The scale sends weighing result when initial signal form computer appears or
key of the scale is pressed.
Automatic mode (for cooperation with a printer)
Data is sending automatically after a sample is put on and scale indication
becomes stable. Next transmission is possible after sample is taken off. Successive
measurement number and weighing result are sending.
The choice of serial interface work mode is made by use of LPt special function
(see further).
The description of data transmission protocol in standard mode (Long protocol)
A scale sends data with following settings:
Communication parameters: 8 bits, 1 stop bit, no parity, baud rate 4800bps.
Available orders and scale responses:
initialising signal (data send order):
Computer→Scale: S I CR LF (53h 49h 0Dh 0Ah),
Scale→Computer: scale response according to description below (16 bytes),
Description of response bytes:
Byte 1 - sign or space
Byte 2 - space
Byte
3
4
- digit or space
Byte 5÷9 - digit, decimal point or space
Byte 10 - digit
Byte 11 - space
Byte 12 - k, l, c, p or space
Byte 13 - g, b, t, c or %
Byte 14 - space
Byte 15 - CR
Byte 16 - LF
scale tarring (calling
→
T
←
key press):
Computer→Scale: S T CR LF (53h 54h 0Dh 0Ah),
Scale→Computer: without response,
scale turning on / off (calling
I/
key press):
Computer→ Scale: S S CR LF (53h 53h 0Dh 0Ah),