1569‐PT060EE1 Rev.7 Page54of62
6.2.1 Calculation of the checksum
ThetwoASCIIcharacterswhichidentifythechecksummustbecalculatedinthefollowingway:
1. Calcolate the XO R binary of all the characters from the 1° to the 12° included in the case of strings of 16
characters(ID485=0)ortothe14°includedinthe
caseofstringsof18characters(ID485>0).
2. SeparatetheXORvaluesobtainedintoahigharea(first4bit)andalowarea(last4bit)
3. CodethehighareaaccordingtotheASCIIhextable,whichwillbecomethecharacterwritteninposition[CHK
1](13°
characterinthecaseofastringof16characters,15°inthecaseofastringof18characters).
Forexamplethebinary value5(0101)willbecome character<5>(Hex35),or thebinaryvalueB(1011)will
becomecharactercapital<B>(Hex42).
4. Code the lower
area according to the ASCII hex table, which will become the character written in position
[CHK2](14°characterinthecaseofastringof16characters,16°inthecaseofastringof18characters).
(seepreviousexample)
6.3 String format in bi-directional mode
Thelengthofthestringdiffersaccordingtothe
ID485parametervalue.
6.3.1 Weight request command
<STX>[<ID485H><ID485L>]<CMD><CHK1><CHK2><CR>
CMD=<P>(Hex50)weightcommandrequest
ID485>0 (lunghezza7caratteri)
1°character[STX] (Hex02)Startoftext
2°character[ID485H]from<0>(Hex30)to<9>(Hex39)
toindicatethetensofthesetID485value
3°character[ID485L]
from<0>(Hex30)to<9>(Hex39)
toindicatetheunitsofthesetID485value
4°character[CMD] P(Hex50)
5°character[CHK1] from<0>(Hex30)to<9>(Hex39)orfrom<A>(Hex41)to<F>(Hex46)toindicate
thehigherpartof
thechecksum
6°character[CHK2] from<0>(Hex30)to<9>(Hex39)orfrom<A>(Hex41)to<F>(Hex46)toindicate
thelowerpartofthechecksum
7°character<CR>(Hex0D)carriagereturn
<STX><CMD><CHK1><CHK2><CR>
CMD=<P>(Hex50)weightcommandrequest
ID485>
0 (5 characters length)
1°character[STX] (Hex02)Startoftext
2°character[CMD] P(Hex50)
3°character[CHK1] from<0>(Hex30)to<9>(Hex39)orfrom<A>(Hex41)to<F>(Hex46)toindicate
thehigherpartofthechecksum
4°character[CHK2] from<0>
(Hex30)to<9>(Hex39)orfrom<A>(Hex41)to<F>(Hex46)toindicate
thelowerpartofthechecksum
5°character<CR>(Hex0D)carriagereturn
Theformatoftheanswerframeisthesamethanincontinuousmodality.