Herunterladen Inhalt Inhalt Diese Seite drucken

Datalogic F732 WIZARD Bedienungsanleitung Seite 169

Inhaltsverzeichnis

Werbung

C
EXAMPLE
Let us imagine that you have to send the message <ESC>7CKSUM<ESC><CR>
using BCC=Checksum module 256. The Block Check Characters value must be
calculated as follows:
ASCII
ESC
=
"7"
=
"C"
=
"K"
=
"S"
=
"U"
=
"M"
=
<ESC>
=
<CR>
=
If you calculate the sum with hexadecimal values, you obtain the result 1FD
it by 100
(256Dec) and you are left with FD
16
important digits of the hexadecimal sum are considered.
If you calculate the sum with binary values, you obtain 1.1111.1101; divide it by
1.0000.0000 Bin. (256Dec) and you are left with: 1111.1101, when that is changed
into hexadecimal form it is FD
the binary sum are considered.
The value obtained must be broken down into the two nibbles that make it up, thus
the characters to be inserted into the communication frame are the ASCII values "F"
and "D".
108
Hexadecimal
1B
=
16
37
=
16
43
=
16
4B
=
16
53
=
16
55
=
16
4D
=
16
1B
=
16
0D
=
16
1FD
16
. In practice only the last two less important nibbles of
16
Binary
00011011
00110111
01000011
01001011
01010011
01010101
01001101
00011011
00001101
111111101
. In practice only the last two less
16
EASYGEN™
+
+
+
+
+
+
+
+
=
; divide
16

Quicklinks ausblenden:

Werbung

Kapitel

Inhaltsverzeichnis
loading

Inhaltsverzeichnis