Hitachi SJ700-2 Reference Ascii code conversion table, This result is used as BCC

Models: SJ700-2

1 274
Download 274 pages 15.86 Kb
Page 186
Image 186

Chapter 4 Explanation of Functions

(3) How to calculate the block check code (BCC)

(Example) When using the 01 command (frequency-setting command) to set the inverter output frequency to 5 Hz (the station No. of the inverter is 01):

Transmission frame configuration

Station No. Command

Data

ASCII code

The contents of "Station No." to "Data" are converted into ASCII data, and the ASCII data is XORed bit by bit. The final XOR result is set as the block check code (BCC). In the above example of transmission frame, BCC is calculated as follows:

05 (This result is used as BCC.)

(Reference) ASCII code conversion table

Character data

ASCII code

STX

2

ACK

6

CR

0D

NAK

15

0

30

1

31

2

32

3

33

4

34

5

35

6

36

7

37

8

38

9

39

Character data

ASCII code

A

41

B

42

C

43

D

44

E

45

F

46

H

48

P

50

b

62

4 - 128

Page 186
Image 186
Hitachi SJ700-2 Reference Ascii code conversion table, Transmission frame configuration Station No. Command