Chapter 4 Parameters
VFD-EL-W
4-85
Explanation of exception codes:
Exception code Explanation
01
Illegal function code:
The function code received in the command message is not available for the AC
motor drive.
02
Illegal data address:
The data address received in the command message is not available for the AC
motor drive.
03
Illegal data value:
The data value received in the command message is not available for the AC
motor drive.
04
Slave device failure:
The AC motor drive is unable to perform the requested action.
10
Communication time-out:
If Pr.09.03 is not equal to 0.0, and Pr.09.02 = 0
–
2, and there is no communication
on the bus during the time-out detection period (Pr.09.03), the keypad displays
“cE10”.
7. Communication program for a PC:
The following is a simple example of how to write a communication program for Modbus ASCII mode on a
PC in the C language.
#include<stdio.h>
#include<dos.h>
#include<conio.h>
#include<process.h>
#define PORT 0x03F8 /* the address of COM1 */
/* the address offset value relative to COM1 */
#define THR 0x0000
#define RDR 0x0000
#define BRDL 0x0000
#define IER 0x0001
#define BRDH 0x0001
#define LCR 0x0003
#define MCR 0x0004
#define LSR 0x0005
#define MSR 0x0006
unsigned char rdat[60];
/* read 2 data from address 2102H of AC drive with address 1 */
unsigned char tdat[60]={':','0','1','0','3','2','1','0',’2', '0','0','0','2','D','7','\r','\n'};
void main(){
int i;
outportb(PORT+MCR,0x08); /* 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 */
outportb(PORT+BRDL,12); /* set baudrate=9600, 12=115200/9600*/
outportb(PORT+BRDH,0x00);
outportb(PORT+LCR,0x06); /* set protocol, <7,N,2>=06H, <7,E,1>=1AH, <7,O,1>=0AH,
<8,N,2>=07H, <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
Reserved
Содержание VFD-EL-W Series
Страница 7: ...v This page intentionally left blank ...
Страница 21: ...Chapter 1 Introduction VFD EL W 1 14 This page intentionally left blank ...
Страница 34: ...Chapter 2 Installation and Wiring VFD EL W 2 13 This page intentionally left blank ...
Страница 42: ...Chapter 3 Keypad and Start up VFD EL W 3 8 This page intentionally left blank ...
Страница 150: ...Chapter 4 Parameters VFD EL W 4 108 This page intentionally left blank ...
Страница 152: ...Chapter 5 Troubleshooting VFD EL W 5 2 5 1 Over Current oc ...
Страница 153: ...Chapter 5 Troubleshooting VFD EL W 5 3 5 2 Over Voltage ov ...
Страница 154: ...Chapter 5 Troubleshooting VFD EL W 5 4 5 3 Low Voltage Lv ...
Страница 155: ...Chapter 5 Troubleshooting VFD EL W 5 5 5 4 Overheat oH1 ...
Страница 156: ...Chapter 5 Troubleshooting VFD EL W 5 6 5 5 Overload oL ...
Страница 157: ...Chapter 5 Troubleshooting VFD EL W 5 7 5 6 Keypad Display is Abnormal 5 7 Phase Loss PHL ...
Страница 158: ...Chapter 5 Troubleshooting VFD EL W 5 8 5 8 Motor Does Not Run ...
Страница 159: ...Chapter 5 Troubleshooting VFD EL W 5 9 5 9 Motor Speed Cannot be Changed ...
Страница 160: ...Chapter 5 Troubleshooting VFD EL W 5 10 5 10 Motor Stalls During Acceleration 5 11 The Motor Does Not Run as Expected ...
Страница 163: ...Chapter 5 Troubleshooting VFD EL W 5 13 This page intentionally left blank ...
Страница 173: ...Chapter 6 Fault Code Information and Maintenance VFD EL W 6 10 This page intentionally left blank ...
Страница 179: ...Appendix A Specifications VFD EL W A 6 This page intentionally left blank ...
Страница 186: ...Appendix B Accessories VFD EL W B 7 B 3 1 3 Operation Flow Chart Write parameters failure Write parameters success ...
Страница 190: ...Appendix B Accessories VFD EL W B 11 3 Replace the top cover to complete the cooling fan installation ...
Страница 197: ...Appendix C How to Select the Right AC Motor Drive VFD EL W C 7 This page intentionally left blank ...