Delta-electronics VFD-M Manual do Utilizador Página 73

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 118
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 72
    VFD-M …………..………………………….…… . 73
2109H  
210AH
cos ϕ (XXX.XX)
210BH Pr.65 x   H (XXX.XX)
210CH Pr.65 x   H (XXX.XX)
210DH    (XXX.XX)
210EH     (XXX.XX)
210FH     (XXX.XX)

(,
 ,
)

2110H    
3.7.   PC:
        
Modbus  ASCII   .
#include<stdio.h>
#include<dos.h>
#include<conio.h>
#include<process.h>
#define PORT Ox03F8 /* the address of COM1 */
/* the address offset value relative to COM1 */
#define THR 00000
#define RDR 00000
#define BRDL 00000
#define IER 00001
#define BRDH 00001
#define LCR 00003
#define MCR 00004
#define LSR 00005
#define MSR 00006
unsigned char rdat[60];
/* read 2 data from address 2102H of AC drive with address 1 */
unsigned char idat[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) 1080));
/* 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.Ox06); /* set protocol, <7,N,2>=06H
<7,E,1>=1AH, <7,O,1>=0AH
<8,N,2>=07H, <8,E,1>=1BH
<8,0,1>=0BH */
for(i=0;l<=16;i++){
while(!(inportb(PORT+LSR) & 020)); /* wait until THR empty */
outportb(PORT*THR.tdat[i]); /* send data to THR */
}
i=0;
while(!kbhit()){
lf(inportb(
} PORT+LSR) & 001){/* b0==1. read data ready */
Vista de página 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 117 118

Comentários a estes Manuais

Sem comentários