14
INSTRUCTION MANUAL
_____________________________________________________________________________________________________________________
7.2
Detailed LonG protocol description
Standard communication parameters: 8 bits, 1 stop bit, no parity, baud rate 9600bps,
After using
key, measurement data is send together with text description (NET, TARE, GROSS) – all
set by using
option. If
isn’t set then only scale indication is send (as below).
Data exchange (communication):
Readout of scale indication
Computer
Scale:
SI
CR LF (53h 49h 0Dh 0Ah),
Scale
Computer: scale response according to description below (16 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
Readout of actual indication
Computer
Scale:
Sx1
CR LF – initiaton signal
Scale
Computer: scale sends 16 bytes (the same as SI commad)
Readout of stabilization indicator and actual indication
Computer
Scale:
Sx3
CR LF – initiaton signal
Scale
Computer: scale send indicator S (stable) or U (unstable) + 16 bytes (the same as SI
command).
Attention:
Network number different than zero (
SErIAL / nr
function) changes scale working mode: communication
with a computer is possible after logging the scale in with 02h scale number command. To log the scale out
use 03h command.
For example: Using a program to test RS232 interface ( program is available in
/ programy
komputerowe
) for scale number 1 please write:
$0201
to log in, then
SI
, and write:
$03
to close
communication
.
Asking about scale presence in system (testing scale connection with computer):
Computer
Scale:
SJ
CR LF (53h 4Ah 0Dh 0Ah),
Scale
Computer:
MJ
CR LF (4Dh 4Ah 0Dh 0Ah),
Displaying a inscription on scale’s display (text communicate from computer):
Computer
Scale:
SN
n n X X X X X X CR LF, nn-displaying time in seconds; XXXXXX-6 signs to
display
Scale
Computer:
MN
CR LF (4Dh 4Eh 0Dh 0Ah),
Scale tarring (calling
T
key press) :
Computer
Scale:
ST
CR LF (53h 54h 0Dh 0Ah),
Scale
Computer: without response,