EasyManua.ls Logo

Ados T060E - Checksum Calculation for Serial Data; T060 E Bi-directional Serial String Format; T060 E Weight Request Command Format

Ados T060E
62 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1569PT060EE1 Rev.7 Page54of62
6.2.1 Calculation of the checksum
ThetwoASCIIcharacterswhichidentifythechecksummustbecalculatedinthefollowingway:
1. Calcolate the XO R binary of all the characters from the 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)
character[STX] (Hex02)Startoftext
character[ID485H]from<0>(Hex30)to<9>(Hex39)
toindicatethetensofthesetID485value
character[ID485L]
from<0>(Hex30)to<9>(Hex39)
toindicatetheunitsofthesetID485value
character[CMD] P(Hex50)
character[CHK1] from<0>(Hex30)to<9>(Hex39)orfrom<A>(Hex41)to<F>(Hex46)toindicate
thehigherpartof
thechecksum
character[CHK2] from<0>(Hex30)to<9>(Hex39)orfrom<A>(Hex41)to<F>(Hex46)toindicate
thelowerpartofthechecksum
character<CR>(Hex0D)carriagereturn
<STX><CMD><CHK1><CHK2><CR>
CMD=<P>(Hex50)weightcommandrequest
ID485>
0 (5 characters length)
character[STX] (Hex02)Startoftext
character[CMD] P(Hex50)
character[CHK1] from<0>(Hex30)to<9>(Hex39)orfrom<A>(Hex41)to<F>(Hex46)toindicate
thehigherpartofthechecksum
character[CHK2] from<0>
(Hex30)to<9>(Hex39)orfrom<A>(Hex41)to<F>(Hex46)toindicate
thelowerpartofthechecksum
character<CR>(Hex0D)carriagereturn
Theformatoftheanswerframeisthesamethanincontinuousmodality.

Table of Contents

Related product manuals