Pagina –
page
–
Seite
32
SLAVE protocol
List of available commands
Request for net weight and gross weight.
Gross weight changeover
Net weight changeover
Reset or autotare command
The unit connected to the instrument (typically a personal computer) performs MASTER functions and is
the only unit that can start a communication procedure. The communication procedure must always consist
of the transmission of a string by the MASTER, followed by a response from the concerned SLAVE.
Description of the command format
The double apostrophes (quotation marks) enclose constant characters (respect upper and lower case); the
symbols <and> enclose variable numeric fields.
Request for net weight and gross weight
MASTER:
<Ind> "N" EOT
INSTRUMENT:
<Ind> "N" <state> <net> <gross> ETX <csum> EOT
or
<Ind> NAK EOT
Gross weight changeover
MASTER:
<Ind> "C" "L" EOT
INSTRUMENT:
<Ind> "C" "L" ACK EOT
or
<Ind> NAK EOT
Net weight changeover
MASTER:
<Ind> "C" "N" EOT
INSTRUMENT:
<Ind> "C" "N" ACK EOT
or
<Ind> NAK EOT
Reset or autotare command
MASTER:
<Ind> "A" "A" EOT
INSTRUMENT:
<Ind> "A" "A" ACK EOT
or
<Ind> NAK EOT
Characters used in the strings
<Ind>
= NSTRUMENT address, is the ASCII character obtained by adding 80h to the address num-
ber (example address 1: <Ind> = 80h + 01h = 81h).
<csum>
= checksum of string data; it is calculated by performing the exclusive OR (XOR) of all the
characters from <Ind> to ETX excluding the latter; the result of the XOR is broken down into
2 characters considering separately the 4 upper bits (first character) and the 4 lower bits
(second character); the 2 characters obtained are then ASCII encoded. (Example: XOR =
5Dh; <csum> = "5Dh" ie 35h and 44h.
ETX
= end of text, 03h
EOT
= end of transmission, 04h
Содержание WIN9
Страница 1: ...W I N 9 S o w a r e P 1 3 0 3 1 V e r s i o n e 1 0 Manuale Manual Handbuch...
Страница 40: ......