FR500A&FR510A Series Vector Control Inverter
- 159 -
unsigned int CRC_Cal_Value (unsigned char Data, unsigned char Length)
{
unsigned int crc_value = 0xFFFF;
int i = 0;
while (Length--)
{
crc_value ^= Data++;
for (i=0; i<8; i++)
{
if (crc_value & 0x0001)
{
crc_value = (crc_value>>1) ^ 0xa001;
}
else
{
crc_value = crc_value>>1;
}
}
}
return (crc_value);
}
7
.
Error Message Response
Inverter will send an error message report when the master sends error data or inverter receives
the error data due to the external interference.
When Communication error occurs, slave combines the highest bit 1 of command code and error
code as the response to the master.
Responding data frame format when errors happened in Communication:
ADU Item
Byte No.
Range
Error response:
Address of slave
1
0
~
127
Error command code
1
The highest bit 1 of command code
Error code
1
0x01
~
0x13
CRC parity(Low bytes go first)
2
Responding command code at normal Communication and error Communication
Responding Command Code at Normal
Communication
Responding Command Code at Error
Communication
03H
83H
06H
86H
08H
88H
Description of Error Code:
error
Description
error
Description
01H
Exceptional command
code
03H
Illegal Data
02H
Exceptional data address
04H
Operation failed
For example, for U00.00 write data 50.00HZ frequency. The host sends the data frame (hex):
01H
06H
30H
00H
13H
88H
8BH
9CH
Because F00.00 is read only, inverter responds error message. Inverter responds data frame in
hexadecimal format:
01H
86H
02H
C3H
A1H
Command code is 86H in error message, the highest bit 1 of 06H. If error code detail is 11H, it
means the parameter is read only.
After responding to the error data receipt, master can revise the responding program via
resending data frame or based on the error message responded by the inverter.