MODBUS Communication
ASDA-A3
9-14
Revision December, 2017
9
outportb
(PORT+BRDH,0x00);
outportb
(PORT+LCR,0x06);
/* set prorocol
<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++ ) {
while
( !(inportb(PORT+LSR) & 0x20) ); /* wait until THR empty */
outportb
(PORT+THR,tdat[I]);
/* send data to THR */
}
I = 0;
while
( !kbhit() ) {
if
( inportb(PORT+LSR)&0x01 ) { /* b0==1, read data ready */
rdat[I++] = inportb(PORT+RDR); /* read data from RDR */
}
}
}
Содержание ASD-A3-0121
Страница 13: ...Revision December 2017 This page is intentionally left blank...
Страница 43: ...Installation ASDA A3 2 20 Revision December 2017 2 This page is intentionally left blank...
Страница 105: ...Wiring ASDA A3 3 62 Revision December 2017 3 This page is intentionally left blank...
Страница 187: ...Operation Mode ASDA A3 6 36 Revision December 2017 6 This page is intentionally left blank...
Страница 467: ...Parameters ASDA A3 8 210 Revision December 2017 8 This page is intentionally left blank...
Страница 483: ...MODBUS Communication ASDA A3 9 16 Revision December 2017 9 This page is intentionally left blank...
Страница 577: ...Specifications ASDA A3 A 28 Revision December 2017 A This page is intentionally left blank...
Страница 597: ...Accessories ASDA A3 B 20 Revision December 2017 B This page is intentionally left blank...
Страница 603: ...4 Revision December 2017 This page is intentionally left blank...