The Explanation Of Exception Codes; Communication Program Of Pc - Delta Electronics AC Motor Drive VFD-VE Series User Manual

Vfd-ve series high performance field oriented control ac motor drive
Table of Contents

Advertisement

Chapter 4 Parameters|
Address Low
Address High
Function Low
Function High
Exception code
LRC CHK Low
LRC CHK High
END 1
END 0

The explanation of exception codes:

Exception
code
01
02
03
04
10

3.7 Communication program of PC:

The following is a simple example of how to write a communication program for Modbus ASCII mode
on a PC by 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;
4-146
STX
':'
'0'
'1'
'8'
'6'
'0'
'2'
'7'
'7'
CR
LF
Explanation
Illegal function code:
The function code received in the command message is not
available for the AC motor drive.
Illegal data address:
The data address received in the command message is not
available for the AC motor drive.
Illegal data value:
The data value received in the command message is not available
for the AC drive.
Slave device failure:
The AC motor drive is unable to perform the requested action.
Communication time-out:
If Pr.09-03 is not equal to 0.0, Pr.09-02=0~2, and there is no
communication on the bus during the Time Out detection period (set
by Pr.09-03), "cE10" will be shown on the keypad.
Address
Function
Exception code
CRC CHK Low
CRC CHK High
Revision August 2008, 03VE, SW V2.04
01H
86H
02H
C3H
A1H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents