Error check calculating – Flintec FT-15D User Manual
Page 46
FT-15(D) Technical Manual, Rev. 1.02 August 2010
Page 46 of 52
Error Check Calculating:
CSUM = 0 – (Slave_Add + Function + … + Last_data)
(STX and CSUM are neglected while calculating CSUM)
Tool for counting:
0 1 2 3 4 5 6 7 8 9 A B C D E F
Example:
@|01|10|0008|0001|02||0006|DE|<Cr>
To get the check sum (here FA) you have to sum following numbers first:
01+10+00+08+00+01+02+00+06 = 22
Now you have to subtracte 22 from 00:
00 - 22 = DE
(Calculation examples: 00 – 10 = F0 ; 00 – 11 = EF)
Command
Function
(Read /
Write)
Address
register
Quantity
Address
register
Quantity
Data
register
Data Definition
Display value
03 (R)
0000
0002
--
-----
Current display value; gross or net
Transfer the replied status data (hex, 4 digits) into
binary (up to 16 digits) and compare the binary
digits with the following table.
Digit Definition
D0
Busy
1 – System Busy
D1 Data
ok
1 – Data ok
0 – Error
D2
Motion
1 – Weight is not stable
D3 0
NA
D4 0
NA
D5 Output
1
D6 Output
2
D7 Output
3
1 – Output active
D8 Input
1
D9 Input
2
D10 Input
3
1 – Input active
D11 0
NA
D12 0
NA
0 No
Errors
1
ADC out of range
2
ADC over range
3
ADC under range
4 System
fault
Status 03
(R)
0002
0001
--
-----
D13
D14
D15
Error Code;
transfer
D13, D14,
D15
(binary) to
decimal and
compare to
code
5
FT is not in
weighing mode
0003
0002
--
----
Reserved
Gross Weight
03 (R)
0005
0002
--
----
Current gross weight
Status
03 (R)
0007
0001
--
----
Same as address 0002
---- None
Control 10
(W)
0008
0001
02
0001 Zero
Examples:
The commands will be used for an indicator which instrument address is set to 1.
Reading weight data:
@,01,03,00,00,00,02,FA<Cr>
Reading status data:
@,01,03,00,02,00,01,F9<Cr>
Reading Tare data:
@,01,03,00,03,00,02,F7<Cr>
Zeroing: @,01,10,00,08,00,01,02,00,01,E3,<Cr>