Sharp IV-C35M User Manual page 325

Compact color image sensor camera
Hide thumbs Also See for IV-C35M:
Table of Contents

Advertisement

Communication (General Purpose Serial Interface)
[Method for creating a checksum code]
The ASCII code for each byte of data, from the processing code to the end of text (prior to the
checksum code) is added together. The lower 1 byte of this sum is divided into the upper 4 bits and
the lower 4 bits. The hex character (0 to F) is converted to the ASCII code for that character and
sent as one byte. Thus the checksum code consists of two bytes.
Ex. 1 Command for the measurement
execution function 1 (code 10
:
Checksum
Note
- This manual uses the following notation to represent addresses and set values.
22
Station No.
0
0
1 0
0 1 C 2 CR
0.................30
0.................30
1.................31
0.................30
0.................30
1.................31
code
: 22
122
Octal number .......................... (8)
Decimal number ...................... None
Hexadecimal number ............. (H)
Ex. 2 Command for the measurement
)
execution function 7 (code 1A
(H)
Station No.
:
0
ASCII data
Checksum
Ex. 377
Ex. 255
Ex. FF
22-6
)
(H)
0
1 A 1 6 4 0
1
0.................30
0.................30
1.................31
A................41
1.................31
6.................36
4.................34
0.................30
1.................31
code
: CE
1CE
(8)
(H)
6
E
CR
ASCII data

Advertisement

Table of Contents
loading

Table of Contents