Chapter 6: Cash Drawer Interface
6-5
Code Example
#include<dos.h>
#include<conio.h>
#define DigitalPort 0x200
char title[] =
" First Cash Box Testing Program \n" ;
char line[] =
" ========================================== \n" ;
void main()
{
int PortStatus;
while(1)
{
if((inportb(Digi1)&0x01)==0)
{
printf("\n\n\n\n\n");
printf("\t\t\tCash box is OPEN status.");
printf("\n\n");
printf("\t\t\tPlease close cash box.");
while((inportb(Digi1)&0x01)==0)
;
}
clrscr(); //clear screen
printf("\n\n\n\n");
printf(line);
printf(title);
printf(line);
printf("\n\n\n\n\n\n\n\n");
printf("\tPress any key to open the cash box (ESC to
quit)");
if(getch()==27)
break;
clrscr();
Summary of Contents for 7446
Page 1: ...NCR RealPOS 30 7446 Release 2 1 User Guide 2 B005 0000 1551 Issue E...
Page 90: ......
Page 98: ...3 8 Chapter 3 Setup...
Page 148: ...A 10 Appendix A Cables...