Appendix 3 Parameters of Accessories 125
EV2100 Series Variable Speed Drive User Manual
{
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));
}
8 Application examples
To start No.5 drive and make it rotate forward with a speed of 50.00HZ (expressed as 5000 internally), the
command is as follows:
Addre
ss
Function
code
Register
address
Number of
registers
Number of bytes of
register content
Register content
Checksum
Reque
st
0x05 0x10 0x3200
0x0002
0x04 0x01C7,0x1388
0x16A9
Respo
nse
0x05 0x10 0x3200
0x0002
None
None
0x4EF4
The No.5 drive stops at its fastest speed:
Address
Function code
Register address
Register content
Checksum
Request 0x05 0x06 0x3200 0x00C3
0xC6A7
Response
0x05
0x06
0x3200
0x00C3
0xC6A7
No.5 drive jog-forward:
Address
Function code
Register address
Register content
Checksum
Request 0x05 0x06 0x3200 0x00D0 0x876A
Response
0x05
0x06
0x3200
0x00D0
0x876A
No.5 drive jog-stop:
Address
Function code
Register address
Register content
Checksum
Request 0x05 0x06 0x3200 0x00C0 0x86A6
Response
0x05
0x06
0x3200
0x00C0
0x86A6
No.5 drive failure reset: