4-73
(5) About the calculation method of BCC (the Block Check Code)
(Example) 5Hz is set up by using 01 commands (the setting of the frequency command). (when the code
of the inverter of the object is “01” )
BCC is the result that transforms the Code
〜
Data into ASCII Code and took an EXCLUSIVE OR (Xor)
every 1byte. In the case of the above transmission frame, BCC calculates it as follows.
3 0
3 1
3 0
3 1
3 0
3 0
3 0
3 5 3 0 3 0
(
Appendix
)
ASCII code transformation table
STX
Code
Command
Data
BCC
CR
(
0x 02
)
0 1
0 1
(
0x 30 30 30 35 30 30
)
0
0 1
3 1
0 0
3 0
0 0
3 0
0 5 ------ BCC number
ASCII Code
(
0x 30 31
)
0 0 0 5 0 0
(
0x 30 31
)
(
0x 30 35
)
(
0x 0D
)
Xor
Xor
Xor
Xor
Xor
Xor
Xor
0 5
Xor
3 5
Xor
Constitution of the transmission
Chapter 4 Explanation of function
Character data
ASCII code
STX
0 2
ACK
06
CR
0 D
NCK
15
0
3 0
1
3 1
2
3 2
3
3 3
4
3 4
5
3 5
6
3 6
7
3 7
8
3 8
9
3 9
Character data
ASCII code
A
4 1
B
4 2
C
4 3
D
4 4
E
4 5
F
4 6
H
4 8
P
5 0