12
Simple Transmit/Receive Program(Language C)
#include <bios.h>
#include <conio.h>
#define COM1 0
#define DATA_READY 0 100
#define TRUE 1
#define FALSE 0
#define SETTINGS 0 E3
int main(void)
{
int in, out, status, DONE = FALSE;
bioscom(0, SETTINGS, COM1);
cprintf(“... BIOSCOM [ESC] to exit ...
n”);
while (!DONE)
{
status = bioscom(3, 0, COM1);
if (status & DATA_READY)
if ((out = bioscom(2, 0, COM1) & 0 7F) != 0)
putch(out);
if (kbhit( ))
{
if ((in = getch( )) == ‘
1B’)
DONE = TRUE;
bioscom(1, in, COM1);
}
}
return 0;
}
Connection FS-7000D Printer
RXD
TXD
GND
2 Transmit Data
3 Receive Data
14 Signal Ground
15pin port(Female)
Serial port of FS-7000D Printer
RS-232C port of CI-2400BS
Содержание CI-2400BS
Страница 1: ......
Страница 2: ...CI 2400BS Weighing Indicator OWNER S MANUAL ...