V&T E5-H Series User Manual page 128

High performance universal inverter
Table of Contents

Advertisement

Register for function code characteristics of the inverter
Register
address
0xF080
0xF081
0xF082
0xF083
0xF084
It can write the function code No. into 0xF080 by reading and writing multiple register commands 0x17
firstly and then read several attributes of this function code.
6. CRC16 Function
unsigned int crc16(unsigned char *data,unsigned char length)
{
int i,crc_result=0xffff;
while(length−−)
{
crc_result^=*data++;
for(i=0; i<8; i++)
{
if(crc_result&0x01)
crc_result=(crc_result>>1) ^0xa001;
else
crc_result=crc_result>>1;
}
}
return (crc_result=((crc_result&0xff) <<8) |(crc_result>>8) ) ; //Exchange CRC16 check sum and bytes at
higher and lower orders
}
E5−H High Performance Universal Inverter
Meaning
Relative address of the
function code
Current value
High limit
Low limit
Factory default value of the
function code
Appendix A Modbus Communication Protocol
Attached Table−5
Range
See Attached Table−1
0 ~ 65535
0 ~ 65535
0 ~ 65535
0 ~ 65535
User Manual
Read (R) and Write (W)
R/W
R/W
R
R
R
121

Advertisement

Table of Contents
loading

Table of Contents