CHAPTER 13 RS-485 COMMUNICATIONS
13-28
Modbus RTU Communications
13
6. CRC-16
(1) Outline of CRC
CRC (Cyclic Redundancy Check) is a system to check if communications data are correct.
In the CRC calculation, data expressed as a polynomial are divided by a generating polynomial,
and the residue is used as CRC data.
Modbus RTU uses the CRC-16 which performs calculation using X
16
+ X
15
+ X
2
+ 1 as the
generating polynomial.
(2) CRC-16 calculation algorithm
The algorism for calculating CRC-16 on the data (N bytes) from the station number field to the
information field is as follows:
CRC
・・・
Calculated value of CRC-16
POLY
・・・
Generating polynomial
dtn
・・・
Data counter
sft
・・・
Shift counter
DT[dtn]
・・・
Nth data (one byte)
N
・・・
Number of data bytes
XOR
・・・
exclusive OR
DT[0] is station number, DT[1] is FC, and
DT[2]-DT[N-1] are data in the information
field.
START
Default settings
CRC
= FFFFh
POLY
= A001h
dtn
= 0
Shift carry available?
No
Yes
No
CRC = CRC XOR DT[dtn]
Shift CRC to the right by one bit
CRC = CRC XOR POLY
Yes
sft = sft + 1
sft = 0
sft
<
8
dtn
<
N ?
dtn = dtn + 1
Yes
No
END
Содержание ALPHA5 Smart
Страница 1: ...24C7 E 0016c FUJI SERVO SYSTEM ALPHA5 Smart USER S MANUAL...
Страница 2: ......
Страница 4: ...ii...
Страница 36: ...CHAPTER 0 INTRODUCTION 0 16 Combination between Servomotor and Servo Amplifier 0...
Страница 276: ...CHAPTER 4 PARAMETER 4 108 Output Terminal Function Setting Parameter 4...
Страница 368: ...CHAPTER 6 KEYPAD 6 56 Test Operation Mode 6...
Страница 392: ...CHAPTER 7 MAINTENANCE AND INSPECTION 7 24 Troubleshooting 7...
Страница 405: ...CHAPTER 8 SPECIFICATIONS Specifications of Servo Amplifier 8 13 8 8 2 2 Interface Specifications...
Страница 411: ...CHAPTER 8 SPECIFICATIONS Dimensions of Servo Amplifier 8 19 8 8 4 Dimensions of Servo Amplifier...
Страница 472: ...CHAPTER 11 ABSOLUTE POSITION SYSTEM 11 8 Calculation of Battery Life 11...
Страница 488: ...CHAPTER 12 POSITIONING DATA 12 16 Response Time 12...
Страница 592: ...CHAPTER 14 PC LOADER 14 48 Parameter Conversion Tool 14 1 2 3 4 6 7 8 9 10 11...
Страница 595: ...CHAPTER 15 APPENDIXES Main Circuit Block Diagram 15 3 15 15 2 Main Circuit Block Diagram Applicable model Frame1...
Страница 633: ...CHAPTER 15 APPENDIXES Product Warranty 15 41 15 15 9 Product Warranty...
Страница 634: ...CHAPTER 15 APPENDIXES 15 42 Service Network 15 15 10 Service Network...
Страница 635: ......