EasyManua.ls Logo

CAS CI-2001A - CP-7000 Series Printer Connection

CAS CI-2001A
40 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
32
*** C Language
#include <bios.h>
#include <conio.h>
#define COM1 0
#define DATA_READY 0x100
#define TRUE 1
#define FALSE 0
#define SETTINGS 0xE3
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) & 0x7F) !=0)
putch(out);
if(kbhit())
{
if ((in = getch()) == '\x1B')
DONE = TRUE;
bioscom(1, in, COM1);
}
}
return 0;
}
ā—ˆ CP-7000 Series Printer Connection
RXD 3 O ------------------------------
O
3 Transmit Data
TXD 2 O ------------------------------
O 2 Receive Data
GND 7 O ------------------------------
O 14 Signal Ground
9 pin port (male) 15 pin port (female)
RS-232C port of CI-20001 A/B CP-7000 Series Printer Port

Table of Contents

Other manuals for CAS CI-2001A

Related product manuals