int i;
outportb(PORT+MCR,0x08);
outportb(PORT+IER,0x01);
outportb(PORT+LCR,(inportb(PORT+LCR) | 0x80));
/* the BRDL/BRDH can be access as LCR.b7==1 */
outportb(PORT+BRDL,12);
outportb(PORT+BRDH,0x00);
outportb(PORT+LCR,0x06);
<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]);
i=0;
while(!kbhit()){
if(inportb(PORT+LSR) & 0x01){ /* b0==1, read data ready */
rdat[i++]=inportb(PORT+RDR); /* read data form RDR */
}
}
}
Réservé
09.05
Réservé
09.06
Temps de retard à la réponse
09.07
Réglages
Ce paramètre définit le temps de retard de la réponse après que le drive CA ait reçu la
commande de communication, comme illustré ci-dessous. 1 unité = 2 msec.
RS485 BUS
ADV20, V1.02
/* interrupt as data in */
/* set baudrate=9600, 12=115200/9600*/
/* send data to THR */
0 ~ 200 (400 msec)
PC command
Handling time
of AC drive
Max.: 6msec
/* interrupt enable */
/* set protocol, <7,N,2>=06H, <7,E,1>=1AH,
Response Delay Time
Pr.09.07
Chapitre 4 Paramètres
}
Réglage en usine : 1
Response Message of AC Drive
Unité: 2 ms
4-97