Chapter 5 Parameters
|
VFD-B Series
5-94
Revision July 2008, BE16, SW V4.08 & V5.00
Exception
code
Explanation
10
Communication time-out:
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
#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++){
Содержание VFD-B
Страница 3: ...r...
Страница 28: ...Chapter 2 Installation and Wiring VFD B Series Revision July 2008 BE16 SW V4 08 V5 00 2 11...
Страница 49: ...Chapter 2 Installation and Wiring VFD B Series 2 32 Revision July 2008 BE16 SW V4 08 V5 00...
Страница 53: ...Chapter 3 Start Up VFD B Series 3 4 Revision July 2008 BE16 SW V4 08 V5 00 This page intentionally left blank...
Страница 162: ...Chapter 5 Parameters VFD B Series Revision July 2008 BE16 SW V4 08 V5 00 5 105 This page intentionally left blank...
Страница 163: ......
Страница 187: ...Appendix A Specifications VFD B Series A 4 Revision July 2008 BE16 SW V4 08 V5 00 This page intentionally left blank...
Страница 202: ...Appendix B Accessories VFD B Series Revision July 2008 BE16 SW V4 08 V5 00 B 15 Order P N 10TDT1W4C Order P N 26TDT1W4C...
Страница 203: ...Appendix B Accessories VFD B Series B 16 Revision July 2008 BE16 SW V4 08 V5 00 Order P N 50TDS4W4C Order P N 100TDS84C...
Страница 204: ...Appendix B Accessories VFD B Series Revision July 2008 BE16 SW V4 08 V5 00 B 17 Order P N 200TDDS84C Order P N 150TDS84C...
Страница 205: ...Appendix B Accessories VFD B Series B 18 Revision July 2008 BE16 SW V4 08 V5 00 Order P N 180TDS84C Order P N 20TDT1W4D...
Страница 206: ...Appendix B Accessories VFD B Series Revision July 2008 BE16 SW V4 08 V5 00 B 19 Order P N 26TDT1W4B4...
Страница 231: ...Appendix B Accessories VFD B Series B 42 Revision July 2008 BE16 SW V4 08 V5 00 This page intentionally left blank...