![Fuji Electric ALPHA7 User Manual Download Page 567](http://html1.mh-extra.com/html/fuji-electric/alpha7/alpha7_user-manual_2341766567.webp)
CHAPTER 13 MODBUS RTU COMMUNICATION
13-28
Transmission Protocol
13
13.3.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
Summary of Contents for ALPHA7
Page 1: ......
Page 3: ...ii...
Page 22: ...0 1 CHAPTER 0 INTRODUCTION 0...
Page 36: ...1 1 CHAPTER 1 INSTALLATION 1...
Page 47: ...CHAPTER 1 INSTALLATION 1 12 Servo Amplifier 1...
Page 48: ...2 1 CHAPTER 2 WIRING 2...
Page 163: ...CHAPTER 2 WIRING 2 116 Safety Function 2...
Page 164: ...3 1 CHAPTER 3 OPERATION 3...
Page 192: ...4 1 CHAPTER 4 PARAMETER 4...
Page 317: ...CHAPTER 4 PARAMETER 4 126 Extension Function 2 Setting Parameters 4...
Page 318: ...5 1 CHAPTER 5 SERVO ADJUSTMENT 5...
Page 353: ...CHAPTER 5 SERVO ADJUSTMENT 5 36 Special Adjustment Vibration Suppression 5...
Page 354: ...6 1 CHAPTER 6 KEYPAD 6...
Page 408: ...7 1 CHAPTER 7 MAINTENANCE AND INSPECTION 7...
Page 434: ...8 1 CHAPTER 8 SPECIFICATIONS 8...
Page 460: ...9 1 CHAPTER 9 CHARACTERISTICS 9...
Page 472: ...10 1 CHAPTER 10 PERIPHERAL EQUIPMENT 10...
Page 516: ...11 1 CHAPTER 11 ABSOLUTE POSITION SYSTEM 11...
Page 523: ...CHAPTER 11 ABSOLUTE POSITION SYSTEM 11 8 Calculation of Battery Life 11...
Page 524: ...12 1 CHAPTER 12 POSITIONING DATA 12...
Page 540: ...13 1 CHAPTER 13 MODBUS RTU COMMUNICATION 13...
Page 579: ...CHAPTER 13 MODBUS RTU COMMUNICATION 13 40 Communications Procedures 13...
Page 580: ...14 1 CHAPTER 14 PC LOADER 14...
Page 614: ...STANDARDS COMPLIANCE CHAPTER 15 15...
Page 628: ...CHAPTER 16 APPENDIXES 16...
Page 661: ...CHAPTER 16 APPENDIXES 34 Product Warranty 16 16 7 Product Warranty...
Page 662: ......