EasyManua.ls Logo

Acrel DJSF1352-RN - Modbus 通讯说明 MODBUS Communication Description; 通信地址表(Word)Communication Address Table(Word)

Acrel DJSF1352-RN
33 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
20
CRC 生成流程:
1 预置 16 寄存 0FFFFH 1
称之为
CRC
寄存器。
2
把数据帧中的第一个字节的
8
位与
CRC
存器中的低字节进行异或运算,果存回 CRC
器。
3 CRC 寄存器向右移一位最高位 0
低位移出并检测。
4 如果最低位移出为 0重复第 3 (下一次
移位果最出为
1
:将
CRC
寄存
个预设固定值
0A001H
)进行异或运算。
5 重复 3 步和第 4 步直到 8 次移位。这
就处理完了一个完整的 8 位。
6 重复 2 步到第 5 步来处理下 8
直到所有的字节处理结束。
7
最终
CRC
寄存器的值就
CRC
的值。
此外还有一种利用查表计
CRC
的方法,
主要特点是计算速度快,但是表格需要较大的存
空间,该方法此处不再赘述,请查阅相关资料。
CRC generation process:
1 Preset a 16-bit register to 0FFFFH (all 1s) and
call it CRC register.
2 XOR the 8 bits of the first byte in the data
frame with the low byte in the CRC register
and store the result back in the CRC register.
3 Move the CRC register one bit to the right, fill
“0” in the highest bit, and move the lowest bit
out and detect it.
4 If the shifted out minimum bit is 0: Repeat step
3 (next shift); if the shifted out minimum bit is
1: XOR the CRC register with a preset fixed
value (0A001H).
5 Repeat step 3 and 4 until 8 shifts to complete a
complete 8-bit processing.
6 Repeat step 2 to 5 to process the next 8 bits
until processing of all byte ends.
7 The final CRC register value is the CRC value.
In addition, there is a method for calculating
CRC by using a look-up table. Its main feature
is that the calculation speed is fast, but the
table needs a large storage space. This method
is not described here any more. Please refer to
related material.
7.4 Modbus 讯说明 MODBUS communication description
7.4.1
通信地址表
(Word)Communication address table(Word)
RO:只读 R/W:读 RO: Read Only R/W: Read/ Write
地址
Address
名称
Name
类型
Type
备注
Note
word
0
直流电压值
DC voltage value
RO
-9999~9999
读数=有效值×10
(
小数点
-3)
例:读到数据为 5000,小
数点为 2,即实际数据为
5000*10
(2-3)
=500.0
Reading = Effective value
×
10
(Decimal point -3)
For example: When the data
is read as 5000 and the
decimal point is 2, the actual
data is 5000*10(2-3) = 500.0
1
1
电压小数点(DPT)
Decimal Point of Voltage
(DPT)
RO
0-9
1
2
直流电流值
DC current value
RO
-9999~9999
1
3
电流小数点(DCT)
Decimal Point of Current
(DCT)
RO
0-9
1
4
断线检测指示
Broken wire detection
indication
RO
1:断线 0:未断线
1: Broken 0: Not broken
1
5
内部温度
Internal temperature
RO
-400~1250
,小数点一位,单位℃
-400~1250, one decimal place, unit °C
1
6~7

Related product manuals