GT200 series general purpose inverter instruction manual
If CRC checksum of each sending byte is calculated online, it will take a long time, but
could save program space occupied by tables.CRC codes to be calculated on line are as
follows:
unsigned int crc_check(unsigned char *data,unsigned char length)
{
int i;
unsigned 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));
}
Application examples
The command to start 1#inverter for forward rotating, and to set the rotational speed at
50.00HZ (which is 5000 internally) is as follows:
Address
Function
Code
Register
Address
Register
Number
Register
Content
Bytes
Register
Content
Checksum
Request
0x01
0x10
0x3200
0x0002
0x04
0x01C7,0x138
8
0x0399
Response
0x01
0x10
0x3200
0x0002
None
None
0x4F70
1#inverter parks at the quickest speed:
Address
Function Code
Register
Address
Register
Content
Checksum
0x01
0x06
0x3200
0x00C3
0xC723
0x01
0x06
0x3200
0x00C3
0xC723
5#inverter Jog rotates forward:
102