AX10445 Module Series User
’
s Manual
Application
35
Write_Com(1, “EOT”,3);
/* wait for acknowledge */
delay(100);
if (Get2Str()==3) puts(showbuf2);
else { puts(“Timeout! channel 2\n”); goto ERROR_END1; }
/* user routine for checksum or retrieving data
.
.
*/
.
ERROR_END1:
/* reset all index */
Reset_Buf();
/* channel 2 send, channel 1 receive */
/* send enquiry / request data */
Write_Com(2, “Enquiry from 2”, 14);
/* wait for acknowledge */
delay(100);
if (Get1Str()==14) puts(showbuf1);
else { puts(“Timeout! channel 1\n”); goto ERROR_END2; }
/* send header / command data */
Write_Com(2, “Header Command”, 14);
/* wait for acknowledge */
delay(100);
if (Get1Str()==14) puts(showbuf1);
else { puts(“Timeout! channel 1\n”); goto ERROR-END2; }
/* send data out or receive in data */
Write_Com(2, “Data6 Data7 Data8 Data9 Data10”, 30);
/* wait for acknowledge */
delay (100);
if (Get1Str()==30) puts(showbuf1);
else { puts(“Timeout! channel 1\n”); goto ERROR_END2 }
/* send End of Transmission */
Write_Com(2,“EOT”,3);
/* wait for acknowledge */
delay(100);
if (Get1Str()==3) puts(showbuf1);
else { puts(“Timeout! channel 1\n”); goto ERROR_END2; }
/* user routine for checksum or retrieving data
.
Содержание AX10445 Series
Страница 1: ...AX10445 Series Isolated Dual Channel RS422 485 Interface Module User s Manual...
Страница 10: ...AX10445 Module Series User s Manual 4 This page does not contain any information...
Страница 20: ...AX10445 Module Series User s Manual Setting up the AX10445 14 This page does not contain any information...
Страница 41: ...AX10445 Module Series User s Manual Application 33 return 0 void Reset_Buf rear1 front1 rear2 front2 0...
Страница 46: ...AX10445 Module Series User s Manual 36 This page does not contain any information...
Страница 48: ...AX10445 Module Series User s Manual 38 This page does not contain any information...
Страница 50: ...AX10445 Module Series User s Manual 40 This page does not contain any information...
Страница 52: ...AX10445 Module Series User s Manual 42 This page does not contain any information...
Страница 54: ...AX10445 Module Series User s Manual 44 This page does not contain any information...
Страница 58: ...AX10445 Module Series User s Manual 48 This page does not contain any information...