Professional Documents
Culture Documents
Group 9:
Communication Parameters
a
09 - 00 Communication Address
Settings
Factory Setting: 01
01 to 254
09 - 01 Transmission Speed
Settings
Factory Setting: 01
00
01
02
03
Users can set parameters and control the operation of the AC drive via the RS-485
serial interface of a personal computer. This parameter is used to set the transmission
speed between the computer and AC drive.
a
00
01
02
03
Factory Setting: 03
0.0
Disable
Unit: 1
a
09 - 04 Communication Protocol
Settings
00
01
02
03
04
05
Factory Setting: 00
1. Computer Control
5-54
VFD-B Series
There is a built-in RS-485 serial interface, marked (RJ-11 Jack) on the control
terminal block. The pins are defined below:
1: EV
2: GND
3: SG4: SG+
5: NC
6: for communication
30H
31H
32H
33H
34H
35H
36H
37H
38H
39H
41H
42H
43H
44H
45H
46H
Each 8-bit data is the combination of two 4-bit hexadecimal characters. For example,
64 Hex.
2. Data Format
10-bit character frame (For ASCII):
5-55
VFD-B Series
( 7.N.2)
Start
bit
Stop
bit
Even Stop
parity bit
Odd
Stop
bit
7-bit character
10-bit character frame
( 7.E.1)
Start
bit
7-bit character
10-bit character frame
( 7.O.1)
Start
bit
Stop
parity bit
7-bit character
10-bit character frame
Stop Stop
bit
bit
Even Stop
parity bit
8-bit character
11-bit character frame
( 8.E.1 )
Start
bit
8-bit character
11-bit character frame
( 8.O.1 )
Start
bit
Odd
Stop
parity bit
8-bit character
11-bit character frame
RTU mode:
5-56
VFD-B Series
START
ADR
CMD
DATA (n-1)
to
DATA 0
CRC CHK Low
CRC CHK High
END
Contents of data:
n8-bit data, n<=16
CRC check sum:
16-bit check sum consists of 2 8-bit characters
A silent interval of more than 10 ms
Number of data
(count by word)
LRC CHK 1
DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
:
0
1
0
3
2
1
0
2
0
0
0
2
D
STX
ADR 1
ADR 0
CMD 1
CMD 0
Number of data
(Count by byte)
Content of
register
2102H
Content of
register 2103H
5-57
:
0
1
0
3
0
4
1
7
7
0
0
0
0
VFD-B Series
LRC CHK 0
END 1
END 0
7
CR
LF
0
7
1
CR
LF
LRC CHK 1
LRC CHK 0
END 1
END 0
RTU mode:
Command message:
Response message:
ADR
01H
ADR
01H
CMD
03H
03H
Starting data
address
Number of data
(count by word)
CRC CHK Low
CRC CHK High
21H
02H
00H
02H
6FH
F7H
CMD
Number of data
(count by byte)
Content of register
2102H
Content of register
2103H
CRC CHK Low
CRC CHK High
04H
17H
70H
00H
00H
FEH
5CH
Data content
LRC CHK 1
LRC CHK 0
END 1
END 0
Response message:
:
0
1
0
6
0
1
0
0
1
7
7
0
7
1
CR
LF
STX
ADR 1
ADR 0
CMD 1
CMD 0
Register address
Data content
LRC CHK 1
LRC CHK 0
END 1
END 0
:
0
1
0
6
0
1
0
0
1
7
7
0
7
1
CR
LF
RTU mode:
5-58
VFD-B Series
Command message:
Response message:
ADR
01H
ADR
01H
CMD
06H
CMD
06H
Register address
Data content
CRC CHK Low
CRC CHK High
00H
00H
12H
ABH
ADH
14H
Register address
Data content
CRC CHK Low
CRC CHK High
00H
00H
17H
70H
ADH
14H
(3) 08H: loop detection, this command is used to test if the communication between
master equipment (PC or PLC) and AC drive is normal or not. AC drive will
send the data received from master equipment back to master equipment.
Example: AMD address is 01H.
ASCII mode:
Command message:
STX
:
ADR 1
0
ADR 0
1
CMD 1
0
CMD 0
8
0
0
Data address
0
0
1
7
Data content
7
0
LRC Check
7
0
END
CR
LF
RTU mode:
Command message:
ADR
01H
CMD
08H
00H
Data address
00H
17H
Data content
70H
CRC CHK Low
8EH
CRC CHK High
0EH
(4) 10H: multi write, write multi data to registers.
DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
5-59
5
Response message:
STX
ADR 1
ADR 0
CMD 1
CMD 0
Data address
Data content
LRC Check
END
:
0
1
0
8
0
0
0
0
1
7
7
0
7
0
CR
LF
Response message:
ADR
01H
CMD 1
08H
00H
Data address
00H
17H
Data content
70H
CRC CHK Low
8EH
CRC CHK High
0EH
VFD-B Series
VFD-B Series
content
A0H
CRC Check Low 9
CRC Check High A
3.4
01H
CMD
03H
Starting register
21H
address
02H
Number of data
00H
(count by word)
02H
CRC CHK Low
6FH
CRC CHK High
F7H
CRC (Cyclical Redundancy Check) is calculated by the following steps:
Step 1: Load a 16-bit register (called CRC register) with FFFFH.
Step 2: Exclusive OR the first 8-bit byte of the command message with the low order
byte of the 16-bit CRC register, putting the result in the CRC register.
DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
5-61
VFD-B Series
Continue
message, the upper and lower bytes of the CRC value must be swapped,
i.e. the lower order byte will be transmitted first.
The following is an example of CRC generation using C language. The function takes two
arguments:
Unsigned char* data a pointer to the message buffer
Unsigned char length the quantity of bytes in the message buffer
The function returns the CRC value as a type of unsigned integer.
Unsigned int crc_chk(unsigned char* data, unsigned char length){
int j;
unsigned int reg_crc=0xFFFF;
while(length--){
reg_crc ^= *data++;
for(j=0;j<8;j++){
if(reg_crc & 0x01){ /* LSB(b0)=1 */
reg_crc=(reg_crc>>1) ^ 0xA001;
}else{
reg_crc=reg_crc >>1;
}
}
}
return reg_crc;
}
3.5
Address list:
VFD-B Series
Content
Address
AC drive
Parameters
GGnnH
Function
GG means parameter group, nn means parameter number,
for example, the address of Pr 4-01 is 0401H. Referencing
to chapter 5 for the function of each parameter. When
reading parameter by command code 03H, only one
parameter can be read at one time.
00B: No function
01B: Stop
Bit 0-1
10B: Run
11B: Jog + Run
Bit 2-3
Reserved
Bit 4-5
Command
Write only
2000H
Bit 6-7
Bit 8-11
Bit 12
Bit 13-15
Command
Write only
2001H
2002H
Status monitor
Read only
2100H
Status monitor
Read only
2100H
00B: No function
01B: FWD
10B: REV
11B: Change direction
00B: Comm. forced 1st accel/decel
01B: Comm. forced 2nd accel/decel
10B: Comm. forced 3rd accel/decel
11B: Comm. forced 4th accel/decel
Represented 16 step speeds.
0: No comm. multi step speed or accel/decel time
1: Comm. multi step speed or accel/decel time
Reserved
Freq. command
Bit 0
1: EF (external fault) on
Bit 1
1: Reset
Bit 2-15 Reserved
Error code:
00: No error occurred
01: Over-current (oc)
02: Over-voltage (ov)
03: Overheat (oH)
04: Overload (oL)
05: Overload1 (oL1)
06: External fault (EF)
07: IGBT short circuit protection (occ)
08: CPU failure (cF3)
09: Hardware protection failure (HPF)
10: Current exceeds 2 times rated current during accel (ocA)
11: Current exceeds 2 times rated current during decel (ocd)
12: Current exceeds 2 times rated current during steady state
operation (ocn)
13: Ground Fault (GFF)
5-63
VFD-B Series
Content
Address
Function
14: Low voltage (Lv)
15: CPU failure 1 (cF1)
16: CPU failure 2 (cF2)
17: Base Block
18: Overload (oL2)
19: Auto accel/decel failure (cFA)
20: Software protection enabled (codE)
21: EF1 Emergency stop
22:PHL (Phase-Loss)
23:cEF (Preliminary count value attained, EF active)
24:Lc (Low-current)
25:AnLEr (Analog feedback signal error)
2101H
2102H
2103H
2104H
2105H
2106H
2107H
2108H
2109H
210AH
210BH
210CH
VFD-B Series
Content
3.6
Address
210DH
210EH
210FH
2110H
2200H
2201H
2202H
2203H
2204H
2205H
Exception response:
Function
PG pulse (low byte) /unit time (Pr.10-15)
PG pulse (high byte) /unit time (Pr.10-15)
Output power (KW)
Reserved
Feedback Signal (XXX.XX %)
User-defined (Low word)
User-defined (High word)
AVI analog input (XXX.XX %)
ACI analog input (XXX.XX %)
AUI analog input (XXX.XX %)
The AC drive receives the messages without a communication error, but cannot
handle it, an exception response will return to the master device and an error
message CExx will display on the keypad of AC drive. The xx of CExx is a
decimal code equal to the exception code that will describe below.
In the exception response, the most significant bit of the original command code is set
to 1, and an exception code explains the condition that caused the exception is
returned. An example of exception response of command code 06H and exception
code 02H:
ASCII mode:
STX
ADR 1
ADR 0
CMD 1
CMD 0
Error code
LRC CHK 1
LRC CHK 0
END 1
END 0
RTU mode:
ADR
CMD
Exception code
CRC CHK Low
CRC CHK High
:
0
1
8
6
0
2
7
7
CR
LF
5-65
01H
86H
02H
C3H
A1H
VFD-B Series
Error
codes
01
02
03
04
Explanation
Illegal command code:
The command code received in the command message is not available for the AC
drive.
Illegal data address:
The data address received in the command message is not available for the AC drive.
Illegal data value:
The data value received in the command message is not available for the AC drive.
Slave device failure:
The AC drive is unable to perform the requested action.
/* interrupt enable */
outportb(PORT+IER,0x01);
/* interrupt as data in */
outportb(PORT+LCR,(inportb(PORT+LCR) | 0x80));
/* the BRDL/BRDH can be access as LCR.b7==1 */
5-66
VFD-B Series
outportb(PORT+BRDL,12);
/* set baudrate=9600,
12=115200/9600*/
outportb(PORT+BRDH,0x00);
outportb(PORT+LCR,0x06);
<8,E,1>=1BH
<8,O,1>=0BH
*/
for(i=0;i<=16;i++){
while(!(inportb(PORT+LSR) & 0x20)); /* wait until THR empty */
outportb(PORT+THR,tdat[i]);
/* send data to THR */
}
i=0;
while(!kbhit()){
if(inportb(PORT+LSR) & 0x01){ /* b0==1, read data ready */
rdat[i++]=inportb(PORT+RDR); /* read data form RDR */
}
}
}
09 - 05 HMI Register 1
Settings
Factory Setting: 00
Factory Setting: 00
0065535
09 - 06 HMI Register 2
Settings
0065535
00 ~ 200
Factory Setting: 00
Unit: 0.5msec
This parameter is the response delay time after AC drive receives communication
command as shown in the following.
RS485 BUS
PC or PLC command
5-67