5-28 Chapter 5: 2x20 Customer Display (7446-K453)
Code Example
#include <dos.h>
#include <stdio.h>
#include <graphics.h>
#include <bios.h>
#include <conio.h>
#include <malloc.h>
#define CR 13
#define ESC 27
union REGS regs ;
char title[] ="\n\n VFD Testing Program " ;
char line1[] ="\n Comport Select 1:Com1 2:Com2 3:Com3 4:Com4
6:Com6 Esc:Quit :" ;
char line2[] ="Test Prog 8/ 1/2000\n" ;
char low_line[] ="Send string to line2\n" ;
char fix_p[] ="25000\n" ;
char string[]="DemoProgramm";
char string2[]="Welcome !!2003/06/29";
unsigned ComPort,count,ComSelect;
unsigned Status,j,k,c,d,ch,chold;
void main()
{
unsigned data ;
char *ComData;
int tempLoop;
unsigned char charcount1,charcount2;
ProgramStart:
clrscr();
printf(title);
printf(line1);
ComPort_Select:
ComSelect=getch();
switch(ComSelect){
case('1'): ComPort=0;ComData="Now = COM1,9600,N,8,1 "; break;
case('2'): ComPort=1;ComData="Now = COM2,9600,N,8,1 "; break;
case('3'): ComPort=2;ComData="Now = COM3,9600,N,8,1 "; break;
case('4'): ComPort=3;ComData="Now = COM4,9600,N,8,1 "; break;
case('6'): ComPort=5;ComData="Now = COM6,9600,N,8,1 ";
break;
case(ESC): goto programmend;break;
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...