![NCR RealPOS 30 Скачать руководство пользователя страница 137](http://html1.mh-extra.com/html/ncr/realpos-30/realpos-30_user-manual_714709137.webp)
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();
Содержание RealPOS 30
Страница 1: ...NCR RealPOS 30 7446 Release 2 1 User Guide 2 B005 0000 1551 Issue E ...
Страница 90: ......
Страница 98: ...3 8 Chapter 3 Setup ...
Страница 148: ...A 10 Appendix A Cables ...
Страница 149: ...Appendix B Memory Maps This memory map is based on the BIOS Load Optimized Defaults and does not have any add on cards ...