MANUAL DE INSTRUCCIONES CODIGO 80152 REV E
ASCII
#
0
1
S
V
T
<BL>
+
0
9
8
,
0
J
.P. SELECTA s.a.u.
DIC 2019
LRC ERROR CHECKING FIELD
Frame includes a transmission error checking field called LRC. The
field size is 2 bytes. This field is calculated by the sender device
and includes it on the frame. The receiver device also calculates
LCR value. If calculated value is equal than the transmitted LCR
value, transmission was good.
LRC calculation procedure:
1. Convert each character on its hexadecimal value.
2. Add.
3. Take the smallest byte (two first characters starting from right
hand side).
4. Subtract from FF on previous result.
5. Add 1.
HEX
LRC CALCULATION EXAMPLE
23
30
31
#01SVT<BL>+098,037<CR><LF>
53
56
54
20
2B
30
39
38
2C
+
30
2C9
LRC =
• «Get» commands always ends by «?»
• Characters always in capital letters.
• Use spaces only when indicated by <BL>.
• Decimal separator is «,».
CONNECTION CABLE
It could be found in any electronic components specialized shop:
Cable Null - 9 pins modem
Connectors in both cable sides are 9 pins female.
Ctra. NII Km 585.1 Abrera 08630 (Barcelona) España
e-mail: selecta@jpselecta.es - website: www.grupo-selecta.com
(Sujetas a modificaciones sin previo aviso)
FF
-
C9
36
+
1
37
PC
1
2
3
4
5
6
7
8
Device
7, 8
3
2
6
5
4
1
Tel 34 937 700 877 Fax 34 937 702 362
Pag.: 28