Communication Program Of Pc - Delta VFD-B Series Manual

Hide thumbs Also See for VFD-B Series:
Table of Contents

Advertisement

The explanation of exception codes:
Exception
code
Illegal function code:
01
The function code received in the command message is not available for the AC motor drive.
Illegal data address:
02
The data address received in the command message is not available for the AC motor drive.
Illegal data value:
03
The data value received in the command message is not available for the AC drive.
Slave device failure:
04
The AC motor drive is unable to perform the requested action.
Communication time-out:
10
If Pr.09-03 is not equal to 0.0, Pr.09-02=00~02, 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.
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
Revision 10/2005, BE13, SW V4.08
ASCII mode:
STX
'0'
Address Low
Address High
'1'
'8'
Function Low
Function High
'6'
'0'
Exception code
'2'
'7'
LRC CHK Low
LRC CHK High
'7'
END 1
CR
END 0
LF
RTU mode:
':'
Explanation
Chapter 5 Parameters VFD-B Series
Address
Function
Exception code
CRC CHK Low
CRC CHK High
01H
86H
02H
C3H
A1H
5-103

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents