Omron RX Series User Manual page 570

High-function general-purpose inverter
Hide thumbs Also See for RX Series:
Table of Contents

Advertisement

8 Communications Functions
BCC (Block Check Code) Calculation Method
Example. To set the frequency reference to 5 Hz by using command 01 (Target station No. = 01)
Transmission Frame Structure
STX
Station No.
To calculate BCC, convert the frame segments from Station No. to Data into ASCII code and then
perform exclusive OR (XOR) operation byte by byte.
In the case of the above transmission frame, BCC is calculated as follows.
30
Xor
01
ASCII Code Conversion Table
Text data
STX
ACK
CR
NAK
0
1
2
3
4
5
6
7
8
9
8 - 94
Command
Data
31
30
31
30
Xor
31
Xor
00
Xor
30
Xor
00
ASCII code
Text data
2
A
6
B
0D
C
15
D
30
E
31
F
32
H
33
P
34
b
35
36
37
38
39
High-function General-purpose Inverter 3G3RX-V1 User's Manual (I578-E1)
BCC
CR
30
30
35
30
Xor
30
Xor
05
Xor
35
Xor
05 ······ This value is BCC.
ASCII code
41
42
43
44
45
46
48
50
62
ASCII code
(0x 02)
01
(0x 30 31)
01
(0x 30 31)
000500
(0x 30 30 30 35 30 30)
05
(0x 30 35)
(0x 00)
30

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents